| | |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,第【"+index+"】行【手机号】员工账号已经存!"); |
| | | } |
| | | cuu.setPhone(null); |
| | | cuu.setCode(p.getNo()); |
| | | if(companyUserService.findOne(cuu) !=null){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,第【"+index+"】行【工号】已经存!"); |
| | | if (StringUtils.isNotBlank(p.getNo())){ |
| | | cuu.setCode(p.getNo()); |
| | | if(companyUserService.findOne(cuu) !=null){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,第【"+index+"】行【工号】已经存!"); |
| | | } |
| | | } |
| | | |
| | | SystemUser systemUser = new SystemUser(); |
| | | systemUser.setUsername(cu.getPhone()); |
| | | systemUser.setDeleted(Boolean.FALSE); |