From d7b233b6ed1793255adee6ed1e0cbe950e6c7e9f Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Wed, 29 Sep 2021 13:30:28 +0800
Subject: [PATCH] 5分钟数据统计bug
---
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