Commit a064bd98 authored by huyuchen's avatar huyuchen

huych-社保批量审核调整

parent eb65db56
...@@ -270,22 +270,24 @@ public class DoSocialTask { ...@@ -270,22 +270,24 @@ public class DoSocialTask {
**/ **/
@Async @Async
public void pushSoldier(String dispatchId, boolean isFriend, String isSingleAudit) { public void pushSoldier(String dispatchId, boolean isFriend, String isSingleAudit) {
List<String> dispatchIdList = new ArrayList<>(); if (!isFriend || CommonConstants.ONE_STRING.equals(isSingleAudit)) {
dispatchIdList.add(dispatchId); List<String> dispatchIdList = new ArrayList<>();
// 当前默认 安徽省 ,且开关是税友的,才可以税友推送办理 dispatchIdList.add(dispatchId);
if (isFriend) { try {
// 断开派单单条推送税友 Thread.sleep(60000);
// 单个审核接口并且户类型为单个,即时推送税友 } catch (InterruptedException e) {
if (CommonConstants.ONE_STRING.equals(isSingleAudit)) { e.printStackTrace();
try { }
Thread.sleep(60000); // 当前默认 安徽省 ,且开关是税友的,才可以税友推送办理
} catch (InterruptedException e) { if (isFriend) {
e.printStackTrace(); // 断开派单单条推送税友
} // 单个审核接口并且户类型为单个,即时推送税友
tSocialFriendPushService.pushFriend(dispatchIdList); // if (CommonConstants.ONE_STRING.equals(isSingleAudit)) {
tSocialFriendPushService.pushFriend(dispatchIdList);
// }
} else {
tSocialSoldierPushService.pushSoldier(dispatchIdList);
} }
} else {
tSocialSoldierPushService.pushSoldier(dispatchIdList);
} }
} }
} }
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