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>