yuliang 5 năm trước cách đây
mục cha
commit
ffbb21aae4
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      whepi-web/src/main/resources/mapper/RbMapper.xml

+ 4 - 1
whepi-web/src/main/resources/mapper/RbMapper.xml

@@ -20,9 +20,12 @@
         left join ms_suspected mss on mss.report_id=msr.report_id
         left join ms_trip tr on mss.suspected_id=trip_id
         <where>
-            <if test="unitId!=null and uptownId!='' and unitId!= '0'.toString()">
+            <if test="unitId!=null and unitId!='' and unitId!= '0'.toString()">
                 and suu.unit_id=#{unitId}
             </if>
+            <if test="uptownId!=null and uptownId!='' and uptownId!= '0'.toString()">
+                and suu.uptown_id=#{uptownId}
+            </if>
         </where>
         order by suu.unit_id asc,suho.linkman
     </select>