fix:phoneNumber报错修复
parent
83b2a05dee
commit
0ac4de90af
|
@ -66,7 +66,7 @@ public class SysProfileController extends BaseController {
|
|||
public void updateProfile(@RequestBody Request<SysUserProfileBo> bo) {
|
||||
SysUserProfileBo profile = bo.getData();
|
||||
SysUserBo user = BeanUtil.toBean(profile, SysUserBo.class);
|
||||
if (StringUtils.isNotEmpty(user.getPhoneNumber()) && !userService.checkPhoneUnique(user)) {
|
||||
if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) {
|
||||
fail("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
|
||||
}
|
||||
if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) {
|
||||
|
|
|
@ -153,7 +153,7 @@ public class SysUserController extends BaseController {
|
|||
SysUserBo user = reqUser.getData();
|
||||
if (!userService.checkUserNameUnique(user)) {
|
||||
fail("新增用户'" + user.getUserName() + "'失败,登录账号已存在");
|
||||
} else if (StringUtils.isNotEmpty(user.getPhoneNumber()) && !userService.checkPhoneUnique(user)) {
|
||||
} else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) {
|
||||
fail("新增用户'" + user.getUserName() + "'失败,手机号码已存在");
|
||||
} else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) {
|
||||
fail("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在");
|
||||
|
@ -179,7 +179,7 @@ public class SysUserController extends BaseController {
|
|||
userService.checkUserDataScope(user.getId());
|
||||
if (!userService.checkUserNameUnique(user)) {
|
||||
fail("修改用户'" + user.getUserName() + "'失败,登录账号已存在");
|
||||
} else if (StringUtils.isNotEmpty(user.getPhoneNumber()) && !userService.checkPhoneUnique(user)) {
|
||||
} else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) {
|
||||
fail("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
|
||||
} else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) {
|
||||
fail("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
|
||||
|
|
|
@ -265,7 +265,7 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
|
|||
if (ObjectUtil.isNotNull(user.getNickName())) {
|
||||
oldUser.setNickName(user.getNickName());
|
||||
}
|
||||
oldUser.setPhonenumber(user.getPhoneNumber());
|
||||
oldUser.setPhonenumber(user.getPhonenumber());
|
||||
oldUser.setEmail(user.getEmail());
|
||||
oldUser.setSex(user.getSex());
|
||||
return sysUserData.save(oldUser) != null ? 1 : 0;
|
||||
|
|
Loading…
Reference in New Issue