Commit 822d5d3c authored by fangxinjiang's avatar fangxinjiang

权限调整

parent 8e490f2f
...@@ -342,30 +342,35 @@ public class DoJointInsuranceTask { ...@@ -342,30 +342,35 @@ public class DoJointInsuranceTask {
List<EkpSocialViewVo> viewVo; List<EkpSocialViewVo> viewVo;
try { try {
//薪资结算状态同步暂时解决方案为定时任务去更新 //薪资结算状态同步暂时解决方案为定时任务去更新
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);
error.setTitle("薪资结算状态同步失败"); error.setTitle("薪资结算状态同步成功");
error.setTypeFlag(CommonConstants.FIVE_STRING); error.setTypeFlag(CommonConstants.FIVE_STRING);
error.setCreateTime(DateUtil.getCurrentDateTime()); error.setCreateTime(DateUtil.getCurrentDateTime());
error.setSettleType(vo.getPayFlag()); error.setSettleType(vo.getPayFlag());
updateStatusErrorMapper.insert(error); updateStatusErrorMapper.insert(error);*/
// //根据结算单号获取明细id和结算状态 TUpdateStatusError error = new TUpdateStatusError();
// viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag()); error.setSettleNo(vo.getSettleNo());
// if (!viewVo.isEmpty()) { error.setCreateTime(DateUtil.getCurrentDateTime());
// viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag())); error.setSettleType(vo.getPayFlag());
// R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo); error.setTypeFlag(CommonConstants.FIVE_STRING);
// if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) { //根据结算单号获取明细id和结算状态
// TUpdateStatusError error = new TUpdateStatusError(); viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
// error.setSettleNo(vo.getSettleNo()); if (!viewVo.isEmpty()) {
// error.setStatus(CommonConstants.ZERO_INT); viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag()));
// error.setTitle("薪资结算状态同步失败"); R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo);
// error.setTypeFlag(CommonConstants.FIVE_STRING); if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) {
// error.setCreateTime(DateUtil.getCurrentDateTime());
// error.setSettleType(vo.getPayFlag()); error.setStatus(CommonConstants.ZERO_INT);
// updateStatusErrorMapper.insert(error); error.setTitle("薪资结算状态同步失败");
// } updateStatusErrorMapper.insert(error);
// } }else {
error.setStatus(CommonConstants.ZERO_INT);
error.setTitle("薪资结算状态同步成功");
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