Commit 52bdd98d authored by hongguangwu's avatar hongguangwu

MVP1.6.2- + 极限行

parent 283f9107
...@@ -357,21 +357,21 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -357,21 +357,21 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
|| (CommonConstants.ONE_STRING.equals(employee.getSalaryGiveTime()) && Common.isNotNull(employee.getBankNo())))) { || (CommonConstants.ONE_STRING.equals(employee.getSalaryGiveTime()) && Common.isNotNull(employee.getBankNo())))) {
if (bankMap.get(employee.getBankNo()) != null) { if (bankMap.get(employee.getBankNo()) != null) {
if (Boolean.FALSE.equals(bankMap.get(employee.getBankNo()))) { if (Boolean.FALSE.equals(bankMap.get(employee.getBankNo()))) {
errorList.add(new ErrorMessage((employee.getLineNums() + 2), "第" + (employee.getLineNums() + 2) + "行:该员工新建失败:【姓名与卡号验证:认证不一致】")); errorList.add(new ErrorMessage((employee.getLineNums() ), "第" + (employee.getLineNums() ) + "行:该员工新建失败:【姓名与卡号验证:认证不一致】"));
isFalse = true; isFalse = true;
} }
} else { } else {
errorList.add(new ErrorMessage((employee.getLineNums() + 2), "第" + (employee.getLineNums() + 2) + "行:该员工新建失败:【姓名与卡号验证:" + SalaryConstants.CHECK_NO_RESPONSE + "】")); errorList.add(new ErrorMessage((employee.getLineNums() ), "第" + (employee.getLineNums() ) + "行:该员工新建失败:【姓名与卡号验证:" + SalaryConstants.CHECK_NO_RESPONSE + "】"));
isFalse = true; isFalse = true;
} }
} }
if (phoneMap.get(employee.getEmpPhone()) != null) { if (phoneMap.get(employee.getEmpPhone()) != null) {
if (Boolean.FALSE.equals(phoneMap.get(employee.getEmpPhone()))) { if (Boolean.FALSE.equals(phoneMap.get(employee.getEmpPhone()))) {
errorList.add(new ErrorMessage((employee.getLineNums() + 2), "第" + (employee.getLineNums() + 2) + "行:该员工新建失败:【手机号验证:手机号错误】")); errorList.add(new ErrorMessage((employee.getLineNums() ), "第" + (employee.getLineNums() ) + "行:该员工新建失败:【手机号验证:手机号错误】"));
isFalse = true; isFalse = true;
} }
} else { } else {
errorList.add(new ErrorMessage((employee.getLineNums() + 2), "第" + (employee.getLineNums() + 2) + "行:该员工新建失败:【手机号验证:" + SalaryConstants.CHECK_NO_RESPONSE + "】")); errorList.add(new ErrorMessage((employee.getLineNums() ), "第" + (employee.getLineNums() ) + "行:该员工新建失败:【手机号验证:" + SalaryConstants.CHECK_NO_RESPONSE + "】"));
isFalse = true; isFalse = true;
} }
} }
...@@ -710,7 +710,7 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -710,7 +710,7 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
for (TSalaryEmployee employee : empList) { for (TSalaryEmployee employee : empList) {
employee.setIssueStatus(CommonConstants.ZERO_INT); employee.setIssueStatus(CommonConstants.ZERO_INT);
if (bankMap.get(employee.getBankNo()) != null && Boolean.FALSE.equals(bankMap.get(employee.getBankNo()))) { if (bankMap.get(employee.getBankNo()) != null && Boolean.FALSE.equals(bankMap.get(employee.getBankNo()))) {
errorList.add(new ErrorMessage((employee.getLineNums() + 2), "第" + (employee.getLineNums() + 2) errorList.add(new ErrorMessage((employee.getLineNums() ), "第" + (employee.getLineNums() )
+ "行:-上次代发户未校验【姓名与卡号】,本次校验结果:不匹配。请去薪酬人员查询处更新卡号信息!")); + "行:-上次代发户未校验【姓名与卡号】,本次校验结果:不匹配。请去薪酬人员查询处更新卡号信息!"));
return false; return false;
} }
...@@ -776,18 +776,18 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -776,18 +776,18 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
try { try {
Integer.parseInt(excel.getTaxMonth()); Integer.parseInt(excel.getTaxMonth());
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
errorMessageList.add(new ErrorMessage((i + 2), "新增员工,计税月份错误")); errorMessageList.add(new ErrorMessage((i ), "新增员工,计税月份错误"));
continue; 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 ), SalaryConstants.TAX_MONTH_LENGTH));
continue; continue;
} }
} }
if (Common.isNotNull(excel.getBankName())) { if (Common.isNotNull(excel.getBankName())) {
if (bankMap.get(excel.getBankName()) == null) { if (bankMap.get(excel.getBankName()) == null) {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.BANK_NAME_ERROR)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.BANK_NAME_ERROR));
continue; continue;
} }
emp.setBankName(excel.getBankName()); emp.setBankName(excel.getBankName());
...@@ -805,12 +805,12 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -805,12 +805,12 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
if (Common.isNotNull(areaCity)) { if (Common.isNotNull(areaCity)) {
emp.setBankCity(areaCity); emp.setBankCity(areaCity);
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.CITY_ERROR)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.CITY_ERROR));
continue; continue;
} }
} }
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.PROVINCE_ERROR)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.PROVINCE_ERROR));
continue; continue;
} }
} }
...@@ -833,7 +833,7 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -833,7 +833,7 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
if (Common.isNotNull(excel.getBankNo())) { if (Common.isNotNull(excel.getBankNo())) {
checkBankNo = new TCheckBankNo(); checkBankNo = new TCheckBankNo();
emp.setLineNums((i + 2)); emp.setLineNums((i ));
checkBankNo.setName(excel.getEmpName()); checkBankNo.setName(excel.getEmpName());
checkBankNo.setBankNo(excel.getBankNo()); checkBankNo.setBankNo(excel.getBankNo());
bankList.add(checkBankNo); bankList.add(checkBankNo);
...@@ -841,12 +841,12 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -841,12 +841,12 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
updateList.add(emp); updateList.add(emp);
if (curTaxMonth) { if (curTaxMonth) {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.CUR_TAX_INFO)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.CUR_TAX_INFO));
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), CommonConstants.SAVE_SUCCESS)); errorMessageList.add(new ErrorMessage((i ), CommonConstants.SAVE_SUCCESS));
} }
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), "已存在,不可更新")); errorMessageList.add(new ErrorMessage((i ), "已存在,不可更新"));
} }
} else { } else {
// 新增人员 // 新增人员
...@@ -854,27 +854,27 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -854,27 +854,27 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
|| Common.isEmpty(excel.getEmpPhone()) || Common.isEmpty(excel.getBankName()) || Common.isEmpty(excel.getEmpPhone()) || Common.isEmpty(excel.getBankName())
|| Common.isEmpty(excel.getBankNo()) || Common.isEmpty(excel.getBankProvince()) || Common.isEmpty(excel.getBankNo()) || Common.isEmpty(excel.getBankProvince())
|| Common.isEmpty(excel.getBankCity()) || Common.isEmpty(excel.getTaxMonth())) { || Common.isEmpty(excel.getBankCity()) || Common.isEmpty(excel.getTaxMonth())) {
errorMessageList.add(new ErrorMessage((i + 2), "新增员工,除了支行,其他必填")); errorMessageList.add(new ErrorMessage((i ), "新增员工,除了支行,其他必填"));
continue; continue;
} else { } else {
if (excel.getTaxMonth().length() == 6) { if (excel.getTaxMonth().length() == 6) {
try { try {
Integer.parseInt(excel.getTaxMonth()); Integer.parseInt(excel.getTaxMonth());
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
errorMessageList.add(new ErrorMessage((i + 2), "新增员工,计税月份错误")); errorMessageList.add(new ErrorMessage((i ), "新增员工,计税月份错误"));
continue; continue;
} }
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.TAX_MONTH_LENGTH)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.TAX_MONTH_LENGTH));
continue; continue;
} }
if (bankMap.get(excel.getBankName()) == null) { if (bankMap.get(excel.getBankName()) == null) {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.BANK_NAME_ERROR)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.BANK_NAME_ERROR));
continue; 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 ), pre));
continue; continue;
} else { } else {
areaProvince = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + excel.getBankProvince().trim()); areaProvince = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + excel.getBankProvince().trim());
...@@ -885,11 +885,11 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -885,11 +885,11 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
if (Common.isNotNull(areaCity)) { if (Common.isNotNull(areaCity)) {
excel.setBankCity(areaCity); excel.setBankCity(areaCity);
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.CITY_ERROR)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.CITY_ERROR));
continue; continue;
} }
} else { } else {
errorMessageList.add(new ErrorMessage((i + 2), SalaryConstants.PROVINCE_ERROR)); errorMessageList.add(new ErrorMessage((i ), SalaryConstants.PROVINCE_ERROR));
continue; continue;
} }
excel.setUnitId(dept.getCustomerId()); excel.setUnitId(dept.getCustomerId());
...@@ -901,13 +901,13 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -901,13 +901,13 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
excel.setInvoiceTitle(dept.getInvoiceTitleSalary()); excel.setInvoiceTitle(dept.getInvoiceTitleSalary());
if (Common.isNotNull(excel.getBankNo())) { if (Common.isNotNull(excel.getBankNo())) {
checkBankNo = new TCheckBankNo(); checkBankNo = new TCheckBankNo();
excel.setLineNums((i + 2)); excel.setLineNums((i ));
checkBankNo.setName(excel.getEmpName()); checkBankNo.setName(excel.getEmpName());
checkBankNo.setBankNo(excel.getBankNo()); checkBankNo.setBankNo(excel.getBankNo());
bankList.add(checkBankNo); bankList.add(checkBankNo);
} }
saveList.add(excel); saveList.add(excel);
errorMessageList.add(new ErrorMessage((i + 2), CommonConstants.SAVE_SUCCESS)); errorMessageList.add(new ErrorMessage((i ), CommonConstants.SAVE_SUCCESS));
} }
} }
} }
......
...@@ -190,7 +190,7 @@ public class TSalaryStandardOriginalServiceImpl extends ServiceImpl<TSalaryStand ...@@ -190,7 +190,7 @@ public class TSalaryStandardOriginalServiceImpl extends ServiceImpl<TSalaryStand
// 空白列数(一旦数量达到 maxNullColumNum,将停止循环列,并删除title list与content) // 空白列数(一旦数量达到 maxNullColumNum,将停止循环列,并删除title list与content)
int nullColumnNum = 0; int nullColumnNum = 0;
// 极限空白列,超过阈值,将不继续循环列 // 极限空白列,超过阈值,将不继续循环列
int maxNullColumNum = 10; int maxNullColumNum = 30;
String idCardValue = null; String idCardValue = null;
// 数据行是否被确认,true否 // 数据行是否被确认,true否
boolean dataRowFlag; boolean dataRowFlag;
......
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