Commit 049701cc authored by huyuchen's avatar huyuchen

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

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