|
|
|
@ -64,10 +64,14 @@ |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
and device_info.flag = 0 |
|
|
|
<!-- 如果 categoryIdList 不包含 1011,才加 device_id 过滤 --> |
|
|
|
<if test="!categoryIdList.contains(1011)"> |
|
|
|
and (device_info.device_id LIKE '%\_85' or device_info.device_id LIKE '%\_85_9003' or device_info.device_id LIKE '%\_131_5') |
|
|
|
</if> |
|
|
|
and ( |
|
|
|
device_info.device_id LIKE '%\\_85' |
|
|
|
or device_info.device_id LIKE '%\\_85_9003' |
|
|
|
or device_info.device_id LIKE '%\\_131_5' |
|
|
|
<if test="categoryIdList.contains(1011L)"> |
|
|
|
or type.device_category_id = 1011 |
|
|
|
</if> |
|
|
|
) |
|
|
|
and basic_monitoring_asset.flag != 1 and basic_space.flag != 1 and basic_floor.flag != 1 and basic_building.flag != 1 |
|
|
|
and type.device_category_id in |
|
|
|
<foreach collection="categoryIdList" item="categoryId" open="(" separator="," close=")"> |
|
|
|
@ -511,7 +515,15 @@ |
|
|
|
#{companyId} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
and device_info.flag = 0 and (device_info.device_id LIKE '%\_85' or device_info.device_id LIKE '%\_85_9003' or device_info.device_id LIKE '%\_131_5') |
|
|
|
and device_info.flag = 0 |
|
|
|
and ( |
|
|
|
device_info.device_id LIKE '%\\_85' |
|
|
|
or device_info.device_id LIKE '%\\_85_9003' |
|
|
|
or device_info.device_id LIKE '%\\_131_5' |
|
|
|
<if test="categoryIdList.contains(1011L)"> |
|
|
|
or type.device_category_id = 1011 |
|
|
|
</if> |
|
|
|
) |
|
|
|
and basic_monitoring_asset.flag != 1 and basic_space.flag != 1 and basic_floor.flag != 1 and basic_building.flag != 1 |
|
|
|
and type.device_category_id in |
|
|
|
<foreach collection="categoryIdList" item="categoryId" open="(" separator="," close=")"> |
|
|
|
|