Commit 049701cc authored by huyuchen's avatar huyuchen

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

parent 51c822fe
......@@ -4111,30 +4111,32 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
//派增审核不通过更新派单信息
if (CommonConstants.dingleDigitStrArray[0].equals(dis.getType())
&& CommonConstants.ONE_INT == flag
&& Common.isNotNull(dispatchInfoPre)
&& Common.isNotNull(dis.getSocialId()) && Common.isNotNull(socialInfo)) {
&& 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);
if (Common.isNotNull(dispatchInfoPre)) {
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());
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());
......
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