diff --git a/pigx-upms/pigx-upms-biz/src/main/resources/mapper/SysUserMapper.xml b/pigx-upms/pigx-upms-biz/src/main/resources/mapper/SysUserMapper.xml index a3fddcffd..de0cb70cf 100644 --- a/pigx-upms/pigx-upms-biz/src/main/resources/mapper/SysUserMapper.xml +++ b/pigx-upms/pigx-upms-biz/src/main/resources/mapper/SysUserMapper.xml @@ -21,21 +21,25 @@ - + + - - - - - - + + + + + + + + @@ -135,22 +139,34 @@ `user`.user_id = #{id} - SELECT - + `user`.user_id, + `user`.username, + `user`.`password`, + `user`.salt, + `user`.phone, + `user`.avatar, + `user`.wx_openid, + `user`.qq_openid, + `user`.dept_id, + `user`.create_time AS ucreate_time, + `user`.update_time AS uupdate_time, + `user`.del_flag AS udel_flag, + `user`.lock_flag AS lock_flag, + `user`.dept_id AS deptId, + `user`.tenant_id AS tenantId FROM sys_user AS `user` - LEFT JOIN sys_user_role AS ur ON ur.user_id = `user`.user_id - LEFT JOIN sys_role AS r ON r.role_id = ur.role_id LEFT JOIN sys_dept AS d ON d.dept_id = `user`.dept_id - WHERE - r.del_flag = 0 - - and `user`.username LIKE CONCAT('%',#{query.username},'%') - - - and `user`.dept_id = #{query.deptId} - + + + and `user`.username LIKE CONCAT('%',#{query.username},'%') + + + and `user`.dept_id = #{query.deptId} + + ORDER BY `user`.create_time DESC