Commit 3ae969cb authored by huyuchen's avatar huyuchen

优化修改

parent a166cd6f
...@@ -341,22 +341,31 @@ public class DoJointInsuranceTask { ...@@ -341,22 +341,31 @@ 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()); TUpdateStatusError error = new TUpdateStatusError();
if (!viewVo.isEmpty()) { error.setSettleNo(vo.getSettleNo());
viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag())); error.setStatus(CommonConstants.ZERO_INT);
R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo); error.setTitle("薪资结算状态同步失败");
if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) { error.setTypeFlag(CommonConstants.FIVE_STRING);
TUpdateStatusError error = new TUpdateStatusError(); error.setCreateTime(DateUtil.getCurrentDateTime());
error.setSettleNo(vo.getSettleNo()); error.setSettleType(vo.getPayFlag());
error.setStatus(CommonConstants.ZERO_INT); updateStatusErrorMapper.insert(error);
error.setTitle("薪资结算状态同步失败"); // //根据结算单号获取明细id和结算状态
error.setTypeFlag(CommonConstants.FIVE_STRING); // viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
error.setCreateTime(DateUtil.getCurrentDateTime()); // if (!viewVo.isEmpty()) {
error.setSettleType(vo.getPayFlag()); // viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag()));
updateStatusErrorMapper.insert(error); // 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());
......
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