导入增加所属机构验证;修改密码长度200
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -172,6 +172,13 @@ public class EmpUserServiceSupport extends CrudService<EmpUserDao, EmpUser>
|
|||||||
try{
|
try{
|
||||||
// 验证数据文件
|
// 验证数据文件
|
||||||
ValidatorUtils.validateWithException(user);
|
ValidatorUtils.validateWithException(user);
|
||||||
|
// 部门为空验证
|
||||||
|
if (StringUtils.isBlank(user.getEmployee().getOffice().getOfficeCode())) {
|
||||||
|
failureNum++;
|
||||||
|
failureMsg.append("<br/>" + failureNum + "、账号 " + user.getLoginCode()
|
||||||
|
+ " 导入失败:归属机构不能为空");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// 验证是否存在这个用户
|
// 验证是否存在这个用户
|
||||||
User u = UserUtils.getByLoginCode(user.getLoginCode());
|
User u = UserUtils.getByLoginCode(user.getLoginCode());
|
||||||
if (u == null){
|
if (u == null){
|
||||||
|
|||||||
Reference in New Issue
Block a user