Commit 437a466e authored by hongguangwu's avatar hongguangwu

MVP1.4-导出-薪资人员导入

parent 51b6e34b
...@@ -605,6 +605,12 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -605,6 +605,12 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
curTaxMonth = true; curTaxMonth = true;
} else if (Common.isNotNull(excel.getTaxMonth())) { } else if (Common.isNotNull(excel.getTaxMonth())) {
if (excel.getTaxMonth().length() == 6) { if (excel.getTaxMonth().length() == 6) {
try {
Integer.parseInt(excel.getTaxMonth());
} catch (NumberFormatException e) {
errorMessageList.add(new ErrorMessage((i + 2), "新增员工,计税月份错误"));
continue;
}
emp.setTaxMonth(excel.getTaxMonth()); emp.setTaxMonth(excel.getTaxMonth());
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.TAX_MONTH_LENGTH)); errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.TAX_MONTH_LENGTH));
...@@ -670,6 +676,17 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -670,6 +676,17 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
errorMessageList.add(new ErrorMessage((i + 2), "新增员工,除了支行,其他必填")); errorMessageList.add(new ErrorMessage((i + 2), "新增员工,除了支行,其他必填"));
continue; continue;
} else { } else {
if (excel.getTaxMonth().length() == 6) {
try {
Integer.parseInt(excel.getTaxMonth());
} catch (NumberFormatException e) {
errorMessageList.add(new ErrorMessage((i + 2), "新增员工,计税月份错误"));
continue;
}
} else {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.TAX_MONTH_LENGTH));
continue;
}
String pre = this.checkNewEmpBankAndPhone(excel, true); String pre = this.checkNewEmpBankAndPhone(excel, true);
if (pre != null) { if (pre != null) {
errorMessageList.add(new ErrorMessage((i + 2), pre)); errorMessageList.add(new ErrorMessage((i + 2), pre));
......
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