Compare commits

..

No commits in common. "89ab6408b19295442269ab05830053bf2e2e4895" and "207ab6ea070a832720995595134b44b56c873699" have entirely different histories.

1 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,12 @@ public class ManagerUserService extends BaseService {
if (!dbUser.getOrganizationMemberId().equals(user.getOrganizationMemberId())){
throw new MessageException("当前账号已经绑定了其他成员");
}
QueryWrapper<ManagerUser> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("username", user.getUsername());
queryWrapper.last("limit 1");
if(managerUserMapper.selectOne(queryWrapper) != null){
throw new MessageException("用户名已存在");
}
managerUserMapper.updateById(user);
return user;
}