From cb574e765ea42dcde15a0766b7f707f2c54a005e Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期二, 12 十二月 2023 08:54:49 +0800
Subject: [PATCH] 运营商bug修改

---
 cloud-server-management/src/main/resources/mapper/DeptMapper.xml |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/cloud-server-management/src/main/resources/mapper/DeptMapper.xml b/cloud-server-management/src/main/resources/mapper/DeptMapper.xml
index c8c7bb3..88658e1 100644
--- a/cloud-server-management/src/main/resources/mapper/DeptMapper.xml
+++ b/cloud-server-management/src/main/resources/mapper/DeptMapper.xml
@@ -24,23 +24,21 @@
 		'false'
 		END
 		) as isOpen from sys_dept where 1=1
-		<if test="type ==3 ">
-            and objectType =3 and objectId =#{id}
-        </if>
+        and objectType =#{type} and objectId =#{id}
 	</select>
-
-    <select id="list" resultType="map">
-        select * from sys_dept where 1=1
-        <if test="condition != null and condition != ''">
-            and  simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
-        </if>
-        <if test="objectType == 3">
-            and  objectType = 3 and objectId =#{objectId}
-        </if>
-        <if test="objectType == 1">
-            and  objectType = 1
-        </if>
-        order by num ASC
+    <select id="list" resultType="java.util.Map">
+            select * from sys_dept where 1=1
+            <if test="condition != null and condition != ''">
+                and  simplename like CONCAT('%',#{condition},'%') or fullname like CONCAT('%',#{condition},'%')
+            </if>
+            <if test="objectType == 3">
+                and  objectType = 3 and objectId =#{objectId}
+            </if>
+            <if test="objectType == 1">
+                and  objectType = 1
+            </if>
+            order by num ASC
     </select>
 
+
 </mapper>

--
Gitblit v1.7.1