| | |
| | | if (!old.getMobile().equals(u.getMobile()) && userService.findByMobile(u.getMobile()) != null) { |
| | | return ResultUtil.error("该手机号已绑定其他账户"); |
| | | } |
| | | if (!old.getEmail().equals(u.getEmail()) && userService.findByEmail(u.getEmail()) != null) { |
| | | return ResultUtil.error("该邮箱已绑定其他账户"); |
| | | } |
| | | // if (!old.getEmail().equals(u.getEmail()) && userService.findByEmail(u.getEmail()) != null) { |
| | | // return ResultUtil.error("该邮箱已绑定其他账户"); |
| | | // } |
| | | |
| | | if (StrUtil.isNotBlank(u.getDepartmentId())) { |
| | | Department d = departmentService.get(u.getDepartmentId()); |