From 7d832f295c7f1bd1d2fb293fe875a41adfc21397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Mon, 24 Dec 2018 23:46:49 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20=20mybatis=20?= =?UTF-8?q?=E5=B5=8C=E5=A5=97=E5=88=86=E9=A1=B5=E4=B8=8D=E5=87=86=E7=A1=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=AD=90=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/SysUserMapper.xml | 54 ++++++++++++------- 1 file changed, 35 insertions(+), 19 deletions(-) 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