From 5d1d4b8516c6071a4bb69ba507f6d23eb73e8a67 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期五, 31 三月 2023 14:10:38 +0800
Subject: [PATCH] 驾驶舱接口优化
---
ycl-common/src/main/resources/mapper/depart/UmsDepartMapper.xml | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ycl-common/src/main/resources/mapper/depart/UmsDepartMapper.xml b/ycl-common/src/main/resources/mapper/depart/UmsDepartMapper.xml
index e2b5f47..de105cc 100644
--- a/ycl-common/src/main/resources/mapper/depart/UmsDepartMapper.xml
+++ b/ycl-common/src/main/resources/mapper/depart/UmsDepartMapper.xml
@@ -38,7 +38,7 @@
FROM ums_depart ud
LEFT JOIN ums_depart_manager udm ON ud.id = udm.depart_id
LEFT JOIN ums_admin ua ON udm.user_id = ua.id
- where ud.is_deleted = 0
+ where ud.is_deleted = 0 and ud.status=1
</select>
<select id="selectPageByName" resultMap="DepartVOMap">
SELECT t_0.*,
@@ -50,7 +50,7 @@
FROM ums_depart ud
WHERE is_deleted = 0
<if test="departName!=null and departName!=''">
- and ud.name like CONCAT('%',#{departName},'%')
+ and ud.depart_name like CONCAT('%',#{departName},'%')
</if>
ORDER BY ud.parent_id,ud.id desc
LIMIT #{offset}, #{size}
@@ -94,4 +94,7 @@
HAVING
count( * )= 1
</select>
+ <select id="getDepartType" resultType="java.lang.String">
+ select name from ums_data_dictionary where id = #{id}
+ </select>
</mapper>
--
Gitblit v1.8.0