|
|
@ -42,7 +42,7 @@ |
|
|
<if test="buildingId != null"> |
|
|
<if test="buildingId != null"> |
|
|
and basic_building.building_id = #{buildingId} |
|
|
and basic_building.building_id = #{buildingId} |
|
|
</if> |
|
|
</if> |
|
|
<if test="bindBuildingIdList != null"> |
|
|
<if test="bindBuildingIdList != null and bindBuildingIdList.size() > 0"> |
|
|
and basic_building.building_id in |
|
|
and basic_building.building_id in |
|
|
<foreach collection="bindBuildingIdList" item="item" open="(" separator="," close=")"> |
|
|
<foreach collection="bindBuildingIdList" item="item" open="(" separator="," close=")"> |
|
|
#{item} |
|
|
#{item} |
|
|
@ -63,7 +63,15 @@ |
|
|
#{deviceId} |
|
|
#{deviceId} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</if> |
|
|
</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 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 |
|
|
and type.device_category_id in |
|
|
<foreach collection="categoryIdList" item="categoryId" open="(" separator="," close=")"> |
|
|
<foreach collection="categoryIdList" item="categoryId" open="(" separator="," close=")"> |
|
|
@ -507,7 +515,15 @@ |
|
|
#{companyId} |
|
|
#{companyId} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</if> |
|
|
</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 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 |
|
|
and type.device_category_id in |
|
|
<foreach collection="categoryIdList" item="categoryId" open="(" separator="," close=")"> |
|
|
<foreach collection="categoryIdList" item="categoryId" open="(" separator="," close=")"> |
|
|
|