From ee8bb47024e9ef5a585a5f4d61d1ab236c9d4341 Mon Sep 17 00:00:00 2001 From: cjl <909710561@qq.com> Date: Tue, 23 Apr 2024 15:05:33 +0800 Subject: [PATCH] fix:因子相关性比较均值 --- screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml | 9 +++++++-- 1 files changed, 7 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..40a2981 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,12 @@ <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> + + <select id="selectCoordinate" resultType="com.moral.api.entity.ManageCoordinate"> + SELECT * FROM manage_coordinate WHERE organization_id = (SELECT organization_id from special_device WHERE mac=#{mac} + ) AND is_del =0 </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0