fengxiang
2018-06-27 55b227d4bc75374bca89f413750d236669571a70
src/main/resources/mapper/DeviceVersionMapper.xml
@@ -21,7 +21,14 @@
              device dev
          WHERE
              dev.monitor_point_id IN
                ( SELECT id FROM monitor_point mpt WHERE mpt.organization_id = #{orgId,jdbcType=INTEGER} )
                (
                   SELECT id FROM monitor_point mpt
                   WHERE mpt.organization_id = #{orgId,jdbcType=INTEGER}
                        or EXISTS (
                        SELECT * from dictionary_data where dict_data_key = 'auth_config_super_org' and dict_data_value = #{orgId,jdbcType=INTEGER}
                        )
                )
              )
          order by dvn.create_time desc
  </select>