Compare commits
2 Commits
5c975cd755
...
a768c9df40
| Author | SHA1 | Date |
|---|---|---|
|
|
a768c9df40 | |
|
|
05fb76231a |
|
|
@ -57,6 +57,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
#{deviceType}
|
||||
</foreach>
|
||||
</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">
|
||||
and (
|
||||
<foreach item="type" collection="envSensorResultTypeList" separator=" or ">
|
||||
|
|
|
|||
Loading…
Reference in New Issue