From 4450dd41e8d5828e5da4d277c86e54551a6b6c15 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Thu, 16 Dec 2021 09:06:28 +0800 Subject: [PATCH] 设备新增,修改是工艺字段可以为多个,修改mapper,sql --- screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml b/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml index 82d3e45..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" /> @@ -63,4 +64,11 @@ where d.`is_delete` = 0; </select> + + <select id="selectOrgByMac" resultType="com.moral.api.entity.Organization"> + SELECT area_code, city_code + FROM organization + WHERE id = (SELECT organization_id FROM special_device WHERE mac = #{mac}) + </select> + </mapper> \ No newline at end of file -- Gitblit v1.8.0