导入增加所属机构验证;修改密码长度200

This commit is contained in:
thinkgem
2020-02-28 12:39:02 +08:00
parent f974d058d1
commit 4cd0666ce8
2 changed files with 1280 additions and 1273 deletions

View File

@@ -172,6 +172,13 @@ public class EmpUserServiceSupport extends CrudService<EmpUserDao, EmpUser>
try{
// 验证数据文件
ValidatorUtils.validateWithException(user);
// 部门为空验证
if (StringUtils.isBlank(user.getEmployee().getOffice().getOfficeCode())) {
failureNum++;
failureMsg.append("<br/>" + failureNum + "、账号 " + user.getLoginCode()
+ " 导入失败:归属机构不能为空");
continue;
}
// 验证是否存在这个用户
User u = UserUtils.getByLoginCode(user.getLoginCode());
if (u == null){