yuliang 5 年之前
父節點
當前提交
320284ae39
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      whepi-web/src/main/resources/mapper/RbMapper.xml

+ 6 - 3
whepi-web/src/main/resources/mapper/RbMapper.xml

@@ -88,11 +88,14 @@
                 and (suho.linkman like concat('%',#{queryProperties},'%')
                 or suho.phone like concat('%',#{queryProperties},'%'))
             </if>
-            <if test="reportStatus != null and reportStatus != '' and reportStatus != 2  and reportStatus != 3">
-                and msr.report_status=#{reportStatus}
+            <if test="reportStatus == 0">
+                and msr.report_status=0 and mss.temperature > 0
+            </if>
+            <if test="reportStatus == 1">
+                and msr.report_status=1
             </if>
             <if test="reportStatus == 2">
-                and msr.report_status is null
+                and (msr.report_status is null or mss.temperature is null or mss.temperature = 0)
             </if>
             <if test="reportStatus == 3">
                 and (msr.report_status is null or msr.report_status=0)