Commit 695a6d89 authored by huyuchen's avatar huyuchen

Merge remote-tracking branch 'origin/master'

parents 01dfd639 2af034d5
...@@ -450,7 +450,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -450,7 +450,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
addVo.setProjectsMap(projectsMap); addVo.setProjectsMap(projectsMap);
R<EmpDispatchAddVo> res = archivesDaprUtil.addDispatchInfo(addVo); R<EmpDispatchAddVo> res = archivesDaprUtil.addDispatchInfo(addVo);
// 开始插入各种数据了 // 开始插入各种数据了
insertAllInfo(excelVOList, errorMessageList, setInfoVo, res,socialsMap,fundsMap,socialFundAddMap,dispatchMap,excelVOTemp,dispatchPart,injury); insertAllInfo(excelVOList, errorMessageList, res,socialsMap,fundsMap,socialFundAddMap,dispatchMap,excelVOTemp,dispatchPart,injury);
// 清理map list 等数据 // 清理map list 等数据
Common.clear(excelVOList); Common.clear(excelVOList);
Common.clear(empAddsMap); Common.clear(empAddsMap);
...@@ -479,7 +479,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -479,7 +479,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
private void insertAllInfo(List<TDispatchImportVo> excelVOList, private void insertAllInfo(List<TDispatchImportVo> excelVOList,
List<ErrorMessage> errorMessageList, List<ErrorMessage> errorMessageList,
ProjectSetInfoVo setInfoVo,
R<EmpDispatchAddVo> res, R<EmpDispatchAddVo> res,
Map<String, TSocialInfo> socialsMap, Map<String, TSocialInfo> socialsMap,
Map<String, TProvidentFund> fundsMap, Map<String, TProvidentFund> fundsMap,
...@@ -567,7 +566,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -567,7 +566,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
} }
dispatch.setFirstBuyMonthSocial(getFirstBuyMonthSocial(social)); dispatch.setFirstBuyMonthSocial(getFirstBuyMonthSocial(social));
insertDispatch(emp, dispatch,setInfoVo); insertDispatch(emp, dispatch);
} }
// 插入或更新社保公积金查询信息 大病在封装社保的时候已经算了 大病技术和金额了 // 插入或更新社保公积金查询信息 大病在封装社保的时候已经算了 大病技术和金额了
if (Common.isNotNull(socialFundAddMap)){ if (Common.isNotNull(socialFundAddMap)){
...@@ -647,16 +646,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -647,16 +646,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
} }
private void insertDispatch(EmpAddDispatchVo emp, TDispatchInfo dispatch, ProjectSetInfoVo setInfoVo) { private void insertDispatch(EmpAddDispatchVo emp, TDispatchInfo dispatch) {
if (Common.isNotNull(dispatch)){ if (Common.isNotNull(dispatch)){
if (Common.isNotNull(emp)){ if (Common.isNotNull(emp)){
dispatch.setEmpId(emp.getId()); dispatch.setEmpId(emp.getId());
} }
if (Common.isNotNull(setInfoVo)){
dispatch.setSettleDomainName(setInfoVo.getDepartName());
dispatch.setSettleDomainCode(setInfoVo.getDepartNo());
dispatch.setSettleDomain(setInfoVo.getId());
}
dispatch.setCreateTime(LocalDateTime.now()); dispatch.setCreateTime(LocalDateTime.now());
baseMapper.insert(dispatch); baseMapper.insert(dispatch);
} }
...@@ -1017,7 +1011,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -1017,7 +1011,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
SysBaseSetInfo socialSet, SysBaseSetInfo socialSet,
SysBaseSetInfo fundSet, SysBaseSetInfo fundSet,
TDispatchImportVo excel, TDispatchImportVo excel,
TSocialFundInfo socialFund, boolean injury) { TSocialFundInfo socialFund,
boolean injury) {
TDispatchInfo dispatch = new TDispatchInfo(); TDispatchInfo dispatch = new TDispatchInfo();
// 初始化派单项 // 初始化派单项
dispatch.setOrderId(excel.getOrderId()); dispatch.setOrderId(excel.getOrderId());
...@@ -1035,6 +1030,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -1035,6 +1030,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch.setType(CommonConstants.ZERO_STRING); dispatch.setType(CommonConstants.ZERO_STRING);
dispatch.setCurrentOperator(user.getNickname()); dispatch.setCurrentOperator(user.getNickname());
dispatch.setTrustRemark(excel.getTrustRemark()); dispatch.setTrustRemark(excel.getTrustRemark());
dispatch.setBelongUnitName(excel.getCustomerName());
dispatch.setBelongUnit(excel.getCustomerId());
dispatch.setSettleDomainName(excel.getDepartName());
dispatch.setSettleDomainCode(excel.getSettleDomainCode());
dispatch.setSettleDomain(excel.getSettleDomainId());
if (Common.isNotNull(excel.getSocialHousehold())){ if (Common.isNotNull(excel.getSocialHousehold())){
dispatch.setSocialHandleStatus(CommonConstants.ZERO_STRING); dispatch.setSocialHandleStatus(CommonConstants.ZERO_STRING);
} }
......
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