Commit 15e3902b authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/MVP1.5.4' into MVP1.5.4

parents 00c4083a cdeef757
...@@ -341,12 +341,7 @@ public class DoJointInsuranceTask { ...@@ -341,12 +341,7 @@ public class DoJointInsuranceTask {
public void updateSalarySettleStatus(EkpStatusParamVo vo) { public void updateSalarySettleStatus(EkpStatusParamVo vo) {
List<EkpSocialViewVo> viewVo; List<EkpSocialViewVo> viewVo;
try { try {
//根据结算单号获取明细id和结算状态 //薪资结算状态同步暂时解决方案为定时任务去更新
viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
if (!viewVo.isEmpty()) {
viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag()));
R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo);
if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) {
TUpdateStatusError error = new TUpdateStatusError(); TUpdateStatusError error = new TUpdateStatusError();
error.setSettleNo(vo.getSettleNo()); error.setSettleNo(vo.getSettleNo());
error.setStatus(CommonConstants.ZERO_INT); error.setStatus(CommonConstants.ZERO_INT);
...@@ -355,8 +350,22 @@ public class DoJointInsuranceTask { ...@@ -355,8 +350,22 @@ public class DoJointInsuranceTask {
error.setCreateTime(DateUtil.getCurrentDateTime()); error.setCreateTime(DateUtil.getCurrentDateTime());
error.setSettleType(vo.getPayFlag()); error.setSettleType(vo.getPayFlag());
updateStatusErrorMapper.insert(error); updateStatusErrorMapper.insert(error);
} // //根据结算单号获取明细id和结算状态
} // viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
// if (!viewVo.isEmpty()) {
// viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag()));
// R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo);
// if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) {
// TUpdateStatusError error = new TUpdateStatusError();
// error.setSettleNo(vo.getSettleNo());
// error.setStatus(CommonConstants.ZERO_INT);
// error.setTitle("薪资结算状态同步失败");
// error.setTypeFlag(CommonConstants.FIVE_STRING);
// error.setCreateTime(DateUtil.getCurrentDateTime());
// error.setSettleType(vo.getPayFlag());
// updateStatusErrorMapper.insert(error);
// }
// }
} catch (Exception e) { } catch (Exception e) {
TUpdateStatusError error = new TUpdateStatusError(); TUpdateStatusError error = new TUpdateStatusError();
error.setSettleNo(vo.getSettleNo()); error.setSettleNo(vo.getSettleNo());
......
...@@ -2405,8 +2405,8 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap ...@@ -2405,8 +2405,8 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
initEkpPushSocialParam(unPushInfo,true,selectVoMap); initEkpPushSocialParam(unPushInfo,true,selectVoMap);
} }
} }
unPushInfo.clear(); // unPushInfo.clear();
selectVoMap.clear(); // selectVoMap.clear();
} }
} }
...@@ -2442,8 +2442,8 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap ...@@ -2442,8 +2442,8 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
initEkpPushFundParam(unPushInfo,true,selectVoMap); initEkpPushFundParam(unPushInfo,true,selectVoMap);
} }
} }
unPushInfo.clear(); // unPushInfo.clear();
selectVoMap.clear(); // selectVoMap.clear();
} }
} }
......
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