Commit 2521bbf9 authored by hongguangwu's avatar hongguangwu

MVP1.7.0 导入

parent 7e6ba1bc
...@@ -2619,7 +2619,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -2619,7 +2619,7 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
// 薪资服务的开户行 // 薪资服务的开户行
R<TBankNameMapVo> bankRes = HttpDaprUtil.invokeMethodPost(salaryProperties.getAppUrl() R<TBankNameMapVo> bankRes = HttpDaprUtil.invokeMethodPost(salaryProperties.getAppUrl()
, salaryProperties.getAppId(), "/tbankset/inner/getBankMap", null, TBankNameMapVo.class, SecurityConstants.FROM_IN); , salaryProperties.getAppId(), "/tbankset/inner/getBankMap", null, TBankNameMapVo.class, SecurityConstants.FROM_IN);
Map<String, String> bankMap = new HashMap<>(); Map<String, String> bankMap;
if (Common.isEmpty(bankRes) || bankRes.getData() == null || bankRes.getData().getBankMap() == null){ if (Common.isEmpty(bankRes) || bankRes.getData() == null || bankRes.getData().getBankMap() == null){
return R.failed("获取薪资服务开户行信息失败!"); return R.failed("获取薪资服务开户行信息失败!");
} else { } else {
...@@ -2964,7 +2964,6 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -2964,7 +2964,6 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
errorList.add(info); errorList.add(info);
} }
} }
// boolean flag = false;
// 验证通过的,开始保存 // 验证通过的,开始保存
if (!saveList.isEmpty()) { if (!saveList.isEmpty()) {
List<String> preList = baseMapper.getTPreEmpMainListByCardAndDept(idCardList, deptId); List<String> preList = baseMapper.getTPreEmpMainListByCardAndDept(idCardList, deptId);
...@@ -3335,13 +3334,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -3335,13 +3334,13 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
} }
} }
if (!errorList.isEmpty()) { if (!errorList.isEmpty()) {
return new R<>(CommonConstants.TWO_INT, "失败数据:", excelList); return new R<>(CommonConstants.TWO_INT, "失败数据:", errorList);
} else { } else {
//数据保存 //数据保存
return R.ok(excelList); return R.ok();
} }
} else { } else {
return R.failed("未识别表格内容行!请检查表格!"); return R.failed("未识别表格内容行!请检查表格!");
} }
} }
......
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