From 9d4cd7bb803ed6516e9f699d41d33032dfa9914e Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Mon, 02 Jul 2018 10:49:57 +0800
Subject: [PATCH] 获取监控站布局配置。监控站下无设备,返回数组。
---
src/main/resources/mapper/DeviceVersionMapper.xml | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/DeviceVersionMapper.xml b/src/main/resources/mapper/DeviceVersionMapper.xml
index ad7b3db..576253e 100644
--- a/src/main/resources/mapper/DeviceVersionMapper.xml
+++ b/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>
--
Gitblit v1.8.0