Commit 0ea6a843 authored by hongguangwu's avatar hongguangwu

MVP1.6.4-加个延迟

parent af7a0525
......@@ -3343,6 +3343,8 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
boolean isSSC;
String autoFlag;
TDispatchSocialFundInfo socialFundInfo;
// 是否自动化办理,true:推送到社保士兵
boolean isAuto;
for (TDispatchInfo dis : dispatchs) {
autoFlag = autoFlagMap.get(dis.getId());
if (Common.isEmpty(autoFlag)){
......@@ -3603,13 +3605,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
if (CommonConstants.ONE_STRING.equals(auditStatus)){
dis.setAutoFlag(CommonConstants.ONE_STRING);
}
// 初始化为非自动办理
isAuto = false;
//自动化处理,如果未配置还是人工处理
if (CommonConstants.THREE_STRING.equals(auditStatus)){
// 自动化处理
if (CommonConstants.ZERO_STRING.equals(autoFlag)){
dis.setSocialHandleStatus(CommonConstants.FOUR_STRING);
dis.setAutoFlag(CommonConstants.ZERO_STRING);
socialTask.pushSoldier(dis.getId());
isAuto = true;
}else {
dis.setAutoFlag(CommonConstants.ONE_STRING);
}
......@@ -3617,6 +3621,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
baseMapper.updateById(dis);
socialFundMapper.updateById(sf);
if (isAuto) {
socialTask.pushSoldier(dis.getId());
}
//派减的申请审核完更新社保公积金查询快照表
if (CommonConstants.ONE_STRING.equals(dis.getType())) {
......
......@@ -269,7 +269,7 @@ public class DoSocialTask {
* @return
**/
@Async
public void pushSoldier(String dispatchId){
public void pushSoldier(String dispatchId) {
List<String> dispatchIdList = new ArrayList<>();
dispatchIdList.add(dispatchId);
try {
......
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