Commit 247710a6 authored by hongguangwu's avatar hongguangwu

MVP1.4-薪资人员导入

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