Commit 170dfc75 authored by hongguangwu's avatar hongguangwu

MVP1.7.14-薪资人员导入校验优化

parent 14a8d98d
......@@ -816,6 +816,11 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
continue;
}
}
if (phoneCheckMap.get(excel.getEmpPhone()) != null
&& Boolean.FALSE.equals(phoneCheckMap.get(excel.getEmpPhone()))) {
errorMessageList.add(new ErrorMessage((i), "手机号校验不通过,请更改手机号后重试!"));
continue;
}
}
emp = empMap.get(idCard);
old = new TSalaryEmployee();
......@@ -874,11 +879,6 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
continue;
}
if (Common.isNotNull(emp.getEmpPhone()) && phoneCheckMap.get(emp.getEmpPhone()) != null
&& Boolean.FALSE.equals(phoneCheckMap.get(emp.getEmpPhone()))) {
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), "手机号校验不通过,请更改手机号后重试!"));
continue;
}
// 变更日志 fxj 2023-10-24
logService.initModLog(old,emp,CommonConstants.ONE_STRING,user.getNickname(),util);
baseMapper.updateById(emp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment