From 6633113002f69bdf08a1fb2f7c733e2890082fee Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期三, 28 二月 2024 13:08:30 +0800
Subject: [PATCH] 优化日志
---
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index ab32a54..a014700 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -343,7 +343,7 @@
</foreach>
</select>
- <select id="getOwnAndChildrenSoilderList" resultMap="SysUserOnlyResult">
+ <select id="getOwnAndChildrenOnlineSoilderList" resultMap="SysUserOnlyResult">
select distinct su.user_id,su.dept_id,su.user_name,
concat(su.nick_name,'(',sd.dept_name,')') as nick_name from sys_user su
inner join sys_user_role sur on su.user_id = sur.user_id
@@ -353,7 +353,22 @@
<foreach collection="deptIdList" item="deptId" open="(" close=")" separator=",">
#{deptId}
</foreach>
- and su.app_online_state = '1'
+ and su.app_online_state = '1' and su.status = '0' and su.del_flag = '0'
+ order by su.dept_id asc
+ </select>
+
+ <select id="getOwnAndChildrenSoilderListAll" resultMap="SysUserOnlyResult">
+ select distinct su.user_id,su.dept_id,su.user_name,
+ concat(su.nick_name,'(',sd.dept_name,')') as nick_name,
+ su.app_online_state from sys_user su
+ inner join sys_user_role sur on su.user_id = sur.user_id
+ inner join sys_role sr on sur.role_id = sr.role_id
+ inner join sys_dept sd on su.dept_id = sd.dept_id
+ where sr.role_key = 'appUser' and su.dept_id in
+ <foreach collection="deptIdList" item="deptId" open="(" close=")" separator=",">
+ #{deptId}
+ </foreach>
+ and su.status = '0' and su.del_flag = '0'
order by su.dept_id asc
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3