From dacae5af651baa6ae102c8dd4350a7b8b7d86fe6 Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Thu, 28 Apr 2022 16:16:40 +0800
Subject: [PATCH] 通过时间和mac集合查询数据接口,修改蜂窝图小时数据接口
---
screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml | 4 ++--
1 files changed, 2 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..f4d754f 100644
--- a/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml
+++ b/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml
@@ -7,6 +7,7 @@
<id column="id" property="id" />
<result column="name" property="name" />
<result column="mac" property="mac" />
+ <result column="guid" property="guid" />
<result column="operate_ids" property="operateIds" />
<result column="organization_id" property="organizationId" />
<result column="device_version_id" property="deviceVersionId" />
@@ -67,8 +68,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