From 2a8de579cdb672a24b92f8f28a67e8fb516a5271 Mon Sep 17 00:00:00 2001 From: lizijie <lzjiiie@163.com> Date: Thu, 05 May 2022 16:31:48 +0800 Subject: [PATCH] 中隆汽车产业园设备数据转发 --- src/main/resources/mapper/DeviceMapper.xml | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/DeviceMapper.xml b/src/main/resources/mapper/DeviceMapper.xml index 75ff790..6d0b4d4 100644 --- a/src/main/resources/mapper/DeviceMapper.xml +++ b/src/main/resources/mapper/DeviceMapper.xml @@ -309,4 +309,22 @@ (SELECT id FROM monitor_point WHERE city_code!=130900 or (city_code=130900 and organization_id in (60, 65, 159, 165, 166) and id!=56 and id!=83 and id!=84)) and mac not in (SELECT mac FROM special_device_config); </select> + + <select id="getOfflineDeviceOfDiseaseCenter" resultType="java.util.Map"> + SELECT name,mac + FROM `device` + WHERE state=4 and is_delete=0 + and monitor_point_id in( + SELECT id FROM monitor_point WHERE organization_id=#{orgId} + ); + </select> + + <select id="getAllDeviceByOrg" resultType="java.util.Map"> + SELECT name,mac + FROM `device` + WHERE is_delete=0 + and monitor_point_id in( + SELECT id FROM monitor_point WHERE organization_id=#{orgId} + ); + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0