Commit 51c822fe authored by huyuchen's avatar huyuchen

huych-入职确认信息编辑提交

parent 84ac34cf
......@@ -3825,22 +3825,6 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (null != sf.getSocialIdSuccess()){
sf.setSocialId(sf.getSocialIdSuccess());
}
//审核不通过更新状态
if (Common.isNotNull(dispatchInfoPre)) {
dispatchInfoPre.setProcessStatus(CommonConstants.FOUR_STRING);
dispatchInfoPre.setErrorBackInfo(auditRemark);
dispatchInfoPreMapper.updateById(dispatchInfoPre);
TSocialAutoLog socialAutoLog = new TSocialAutoLog();
socialAutoLog.setSocialId(UUID.randomUUID().toString());
socialAutoLog.setEmpName(dispatchInfoPre.getEmpName());
socialAutoLog.setEmpIdcard(dispatchInfoPre.getEmpIdcard());
socialAutoLog.setErrorInfo(auditRemark);
socialAutoLog.setPhone(dispatchInfoPre.getPhone());
socialAutoLogService.save(socialAutoLog);
sendDisFalureMessageToWx(dispatchInfoPre,socialAutoLog.getId());
}
}
socialInfo.setAuditTime(now);
socialInfo.setAuditUser(user.getId());
......@@ -4124,6 +4108,34 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
sf.setSocialReduceStatus(CommonConstants.SIX_STRING);
}
}
//派增审核不通过更新派单信息
if (CommonConstants.dingleDigitStrArray[0].equals(dis.getType())
&& CommonConstants.ONE_INT == flag
&& Common.isNotNull(dispatchInfoPre)
&& Common.isNotNull(dis.getSocialId()) && Common.isNotNull(socialInfo)) {
//派单审核通过更新社保待购买表的状态
TDispatchInfoPre dispatchInfoPre = dispatchInfoPreMapper.selectOne(Wrappers.<TDispatchInfoPre>query().lambda()
.eq(TDispatchInfoPre::getSocialFundId, sf.getId())
.eq(TDispatchInfoPre::getTypeSub, CommonConstants.ZERO_STRING)
.eq(TDispatchInfoPre::getProcessStatus, CommonConstants.THREE_STRING)
.last(CommonConstants.LAST_ONE_SQL));
if (sf.getSocialStatus().equals(CommonConstants.FOUR_STRING)) {
dispatchInfoPre.setProcessStatus(CommonConstants.NINE_STRING);
} else {
dispatchInfoPre.setProcessStatus(CommonConstants.FOUR_STRING);
}
dispatchInfoPre.setErrorBackInfo(auditRemark);
dispatchInfoPreMapper.updateById(dispatchInfoPre);
TSocialAutoLog socialAutoLog = new TSocialAutoLog();
socialAutoLog.setSocialId(UUID.randomUUID().toString());
socialAutoLog.setEmpName(dispatchInfoPre.getEmpName());
socialAutoLog.setEmpIdcard(dispatchInfoPre.getEmpIdcard());
socialAutoLog.setErrorInfo(auditRemark);
socialAutoLog.setPhone(dispatchInfoPre.getPhone());
socialAutoLogService.save(socialAutoLog);
sendDisFalureMessageToWx(dispatchInfoPre, socialAutoLog.getId());
}
//新增审核记录信息
auditInfo.setEmpIdcard(dis.getEmpIdcard());
auditInfo.setDispatchInfoId(dis.getId());
......
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