From 1b9936ba920d65df09ab8dba79c6252568ee26e4 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 26 三月 2025 12:16:02 +0800 Subject: [PATCH] 任务统计bug --- system/src/main/resources/mapper/system/SysUserMapper.xml | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/system/src/main/resources/mapper/system/SysUserMapper.xml b/system/src/main/resources/mapper/system/SysUserMapper.xml index 6dec71c..abf1553 100644 --- a/system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/system/src/main/resources/mapper/system/SysUserMapper.xml @@ -34,7 +34,9 @@ <result property="ancestors" column="ancestors" /> <result property="orderNum" column="order_num" /> <result property="leader" column="leader" /> + <result property="phone" column="phone" /> <result property="status" column="dept_status" /> + <result property="parentName" column="parent_name" /> </resultMap> <resultMap id="RoleResult" type="SysRole"> @@ -48,7 +50,8 @@ <sql id="selectUserVo"> select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, - d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, + d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.status as dept_status, + (select dept_name from sys_dept where dept_id = d.parent_id) parent_name, r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status from sys_user u left join sys_dept d on u.dept_id = d.dept_id -- Gitblit v1.8.0