yuliang 5 vuotta sitten
vanhempi
commit
ffbb21aae4
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  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_suspected mss on mss.report_id=msr.report_id
         left join ms_trip tr on mss.suspected_id=trip_id
         left join ms_trip tr on mss.suspected_id=trip_id
         <where>
         <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}
                 and suu.unit_id=#{unitId}
             </if>
             </if>
+            <if test="uptownId!=null and uptownId!='' and uptownId!= '0'.toString()">
+                and suu.uptown_id=#{uptownId}
+            </if>
         </where>
         </where>
         order by suu.unit_id asc,suho.linkman
         order by suu.unit_id asc,suho.linkman
     </select>
     </select>