From 70a98b2b11b25c7a3b32c07cdc5043b60383220d Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Thu, 23 Sep 2021 16:59:12 +0800 Subject: [PATCH] 根据组织查设备,站点加入子组织 --- screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml b/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml index 5bb04ba..a422955 100644 --- a/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml +++ b/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml @@ -67,8 +67,7 @@ <select id="selectOrgByMac" resultType="com.moral.api.entity.Organization"> SELECT area_code, city_code FROM organization - WHERE organization_id = - (SELECT organization_id FROM special_device WHERE mac = #{mac}) + WHERE id = (SELECT organization_id FROM special_device WHERE mac = #{mac}) </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0