Ver código fonte

1.修改xml。

zhengqiang 5 anos atrás
pai
commit
210283032d

+ 3 - 2
common/src/main/resources/mapper/base/PersonDeviceFilterLog.xml

@@ -220,8 +220,9 @@
         from base_person_device_filter_log a
         LEFT JOIN base_person_info b on a.person_id=b.id_
         LEFT JOIN base_company_info c on b.company_id=c.id_
-            where a.del_flag=false
-            and a.temperature_ >= #{temperature}
+            where a.del_flag=0
+            and b.del_flag=0
+            and a.temperature_ > #{temperature}
             and a.record_time >= #{startDate}
             and a.record_time < #{endDate}
         ]]>

+ 1 - 1
common/src/main/resources/mapper/base/PersonInfo.xml

@@ -225,7 +225,7 @@
                 and a.id_ in (
                     select b.person_id from base_person_device_filter_log b,base_person_info c
                     where b.person_id = c.id_
-                    and c.company_id = a.company_id
+                    and c.company_id = #{searchParams.companyId}
                     and DATEDIFF(b.record_time,#{searchParams.abnormalDate})=0
                     and b.del_flag=0
                     and b.temperature_>37