6682 报警记录中不需要展示正常数据

This commit is contained in:
gaowdong 2025-07-03 11:25:56 +08:00
parent ca1d10ff92
commit 05fb76231a
1 changed files with 12 additions and 0 deletions

View File

@ -57,6 +57,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{deviceType} #{deviceType}
</foreach> </foreach>
</if> </if>
<if test="envSensorResultTypeList == null or envSensorResultTypeList.size() == 0">
AND !((kdsm.measure_code = 'temperature'
and kdsm.measure_type = 1
and kdsr.measure_data between kdsm.measure_min_value and kdsm.measure_max_value)
or (kdsm.measure_code = 'humidity'
and kdsm.measure_type = 1
and kdsr.measure_data between kdsm.measure_min_value and kdsm.measure_max_value)
or (kdsm.measure_code = 'smoke'
and kdsm.measure_type = 1
and kdsr.measure_data <![CDATA[ <= ]]> kdsm.measure_max_value)
)
</if>
<if test="envSensorResultTypeList != null and envSensorResultTypeList.size() > 0"> <if test="envSensorResultTypeList != null and envSensorResultTypeList.size() > 0">
and ( and (
<foreach item="type" collection="envSensorResultTypeList" separator=" or "> <foreach item="type" collection="envSensorResultTypeList" separator=" or ">