yuliang преди 5 години
родител
ревизия
ffbb21aae4
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  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>