From 14949a6a6e7dec654d13e75f46b24319a624ff8b Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Mon, 30 Oct 2023 17:13:34 +0800
Subject: [PATCH] Merge branch 'dev' of http://blit.7drlb.com:8888/r/moral into wb

---
 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