|
|
|
@ -20,7 +20,9 @@ |
|
|
|
WHERE |
|
|
|
dinfo.flag != 1 AND basic_monitoring_asset.flag != 1 |
|
|
|
AND basic_space.flag != 1 AND basic_floor.flag != 1 AND basic_building.flag != 1 |
|
|
|
<if test="buildingId != null"> |
|
|
|
AND basic_building.building_id = #{buildingId} |
|
|
|
</if> |
|
|
|
AND dinfo.company_id IN <foreach collection="companyIdList" item="item" open="(" separator="," close=")">#{item}</foreach> |
|
|
|
<if test="categoryIdList != null and categoryIdList.size() > 0"> |
|
|
|
and ty.device_category_id in |
|
|
|
|