From 6992aaf0587c09f7c511c1afd12e1519d91363d3 Mon Sep 17 00:00:00 2001
From: cjl <276999030@qq.com>
Date: Thu, 14 Dec 2023 15:38:45 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/cjl' into qa

---
 screen-manage/src/main/resources/mapper/DeviceMapper.xml |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/screen-manage/src/main/resources/mapper/DeviceMapper.xml b/screen-manage/src/main/resources/mapper/DeviceMapper.xml
index 178e9d0..ead9eb8 100644
--- a/screen-manage/src/main/resources/mapper/DeviceMapper.xml
+++ b/screen-manage/src/main/resources/mapper/DeviceMapper.xml
@@ -26,6 +26,7 @@
         <result column="is_delete" property="isDelete"/>
         <result column="extend" property="extend"/>
         <result column="town_code" property="townCode"/>
+        <result column="dev_num" property="devNum"/>
     </resultMap>
 
     <resultMap id="resultMap" type="com.moral.api.pojo.vo.device.DeviceVO" extends="BaseResultMap">
@@ -67,8 +68,8 @@
 
         <!--������������-->
         <association property="town" javaType="java.util.HashMap">
-            <result column="town_code" property="areaCode"/>
-            <result column="town_name" property="name"/>
+            <result column="town_code" property="townCode"/>
+            <result column="town_name" property="townName"/>
         </association>
 
         <!--���������������-->
@@ -250,7 +251,10 @@
         on
             d.`device_version_id` = oua.`version_id`   and d.`organization_id` = oua.`organization_id` and oua.`is_delete` = 0
         where
-            d.`is_delete` = 0;
+            d.`is_delete` = 0
+        <if test="mac != null and mac != '' ">
+            and d.mac = #{mac}
+        </if>
     </select>
 
 

--
Gitblit v1.8.0