Commit 16b51fdd authored by hongguangwu's avatar hongguangwu

getBankCity

parent 26d9cb54
...@@ -378,10 +378,22 @@ public class SalaryAccountUtil implements Serializable { ...@@ -378,10 +378,22 @@ public class SalaryAccountUtil implements Serializable {
continue; continue;
} else { } else {
areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankProvince().trim()); areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankProvince().trim());
newEmp.setBankProvince(Integer.parseInt(areaStr)); if (Common.isNotNull(areaStr)) {
newEmp.setBankProvince(Integer.parseInt(areaStr));
} else {
error = "第" + (i + 2) + "行:新员工-开户行省错误:"+ entity.getBankProvince();
errorList.add(new ErrorMessage((i + 2), error));
continue;
}
areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankCity().trim() areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankCity().trim()
+ CommonConstants.DOWN_LINE_STRING + entity.getBankProvince().trim()); + CommonConstants.DOWN_LINE_STRING + entity.getBankProvince().trim());
newEmp.setBankCity(Integer.parseInt(areaStr)); if (Common.isNotNull(areaStr)) {
newEmp.setBankCity(Integer.parseInt(areaStr));
} else {
error = "第" + (i + 2) + "行:新员工-开户行市错误:"+ entity.getBankCity();
errorList.add(new ErrorMessage((i + 2), error));
continue;
}
} }
if (Common.isEmpty(entity.getBankNo())) { if (Common.isEmpty(entity.getBankNo())) {
error = "第" + (i + 2) + "行:新员工-银行卡号-不可为空!"; error = "第" + (i + 2) + "行:新员工-银行卡号-不可为空!";
...@@ -405,11 +417,15 @@ public class SalaryAccountUtil implements Serializable { ...@@ -405,11 +417,15 @@ public class SalaryAccountUtil implements Serializable {
} }
if (Common.isNotNull(entity.getBankProvince())) { if (Common.isNotNull(entity.getBankProvince())) {
areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankProvince().trim()); areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankProvince().trim());
newEmp.setBankProvince(Integer.parseInt(areaStr)); if (Common.isNotNull(areaStr)) {
newEmp.setBankProvince(Integer.parseInt(areaStr));
}
if (Common.isNotNull(entity.getBankCity())) { if (Common.isNotNull(entity.getBankCity())) {
areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankCity().trim() areaStr = ExcelUtil.getRedisAreaValue(CacheConstants.AREA_VALUE + entity.getBankCity().trim()
+ CommonConstants.DOWN_LINE_STRING + entity.getBankProvince().trim()); + CommonConstants.DOWN_LINE_STRING + entity.getBankProvince().trim());
newEmp.setBankCity(Integer.parseInt(areaStr)); if (Common.isNotNull(areaStr)) {
newEmp.setBankCity(Integer.parseInt(areaStr));
}
} }
} }
} }
......
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