|
|
@ -112,7 +112,15 @@ |
|
|
|
AND s.device_no = #{status.deviceNo} |
|
|
|
</if> |
|
|
|
<if test="status.type != null"> |
|
|
|
AND (d.device_type = #{status.type} or d.child_type=#{status.type}) |
|
|
|
AND (d.device_type in |
|
|
|
<foreach item="typeItem" collection="status.types" open="(" separator="," close=")"> |
|
|
|
#{typeItem} |
|
|
|
</foreach> |
|
|
|
or d.child_type in |
|
|
|
<foreach item="typeItem" collection="status.types" open="(" separator="," close=")"> |
|
|
|
#{typeItem} |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="status.deviceId != null"> |
|
|
|
AND s.device_id = #{status.deviceId} |
|
|
|