Commit 42bf819a authored by fangxinjiang's avatar fangxinjiang

B端调优---人员信息 及 角色 菜单优化

parent 9cc1806a
......@@ -132,7 +132,9 @@ public class BusinessUserController {
SysUser sysUser = null;
SysUser userTemp = null;
if (null != user && null != user.getUserId()){
sysUser = userService.getOne(Wrappers.<SysUser>lambdaQuery().eq(SysUser::getUsername,user.getUsername()).ne(SysUser::getUserId,user.getUserId())
sysUser = userService.getOne(Wrappers.<SysUser>lambdaQuery()
.eq(SysUser::getUsername,user.getUsername())
.ne(SysUser::getUserId,user.getUserId())
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(user.getPhone())){
userTemp = userService.getOne(Wrappers.<SysUser>lambdaQuery()
......@@ -142,7 +144,9 @@ public class BusinessUserController {
.last(CommonConstants.LAST_ONE_SQL));
}
}else {
sysUser = userService.getOne(Wrappers.<SysUser>lambdaQuery().eq(SysUser::getUsername,user.getUsername()).last(CommonConstants.LAST_ONE_SQL));
sysUser = userService.getOne(Wrappers.<SysUser>lambdaQuery()
.eq(SysUser::getUsername,user.getUsername())
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(user.getPhone())){
userTemp = userService.getOne(Wrappers.<SysUser>lambdaQuery()
.eq(SysUser::getPhone, user.getPhone())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment