| | |
| | | select * from sensor sen where sen.id in |
| | | ( |
| | | select DISTINCT sensor_id from device_version_sensor dvs |
| | | where dvs.device_version_id in ( |
| | | where dvs.device_version_id |
| | | in ( |
| | | select DISTINCT device_version_id from device dev where |
| | | EXISTS (select * from monitor_point mpt where |
| | | mpt.organization_id = #{organizationId,jdbcType=INTEGER} and mpt.id = dev.monitor_point_id |
| | | OR EXISTS ( |
| | | SELECT * from dictionary_data |
| | | where dict_data_key = 'auth_config_super_org' and dict_data_value = #{organizationId,jdbcType=INTEGER} |
| | | ) |
| | | ) |
| | | ) order by sen.id asc |
| | | ) |
| | | ) |
| | | order by sen.id asc |
| | | </select> |
| | | </mapper> |