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