Commit 5da06006 authored by hongguangwu's avatar hongguangwu

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

parent 214c3da1
......@@ -830,6 +830,10 @@ public class SalaryAccountUtil implements Serializable {
String areaInt = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + emp.getBankProvince().trim());
if (Common.isNotNull(areaInt)) {
entity.setBankProvince(areaInt);
} else {
error = "第" + i + SalaryConstants.LINE_EMP + emp.getEmpIdcard() + "-开户行省错误,请在工资模板正确填写!";
errorList.add(new ErrorMessage(i, error));
return true;
}
String areaCityInt = null;
if (Common.isNotNull(emp.getBankCity())) {
......@@ -837,6 +841,10 @@ public class SalaryAccountUtil implements Serializable {
+ CommonConstants.DOWN_LINE_STRING + emp.getBankProvince().trim());
if (Common.isNotNull(areaCityInt)) {
entity.setBankCity(areaCityInt);
} else {
error = "第" + i + SalaryConstants.LINE_EMP + emp.getEmpIdcard() + "-开户行市错误或开户行市不在开户行省内,请在工资模板正确填写!";
errorList.add(new ErrorMessage(i, error));
return true;
}
}
}
......
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