guarantee-lsq 2 years ago
parent
commit
bbd94c545b

+ 17 - 1
platform-service/src/main/java/com/platform/service/business/impl/OutStoreFormActivitiServiceImpl.java

@@ -121,10 +121,26 @@ public class OutStoreFormActivitiServiceImpl extends BaseFormCheckServiceAbstrac
         outStoreForm.setId(actAuditRequest.getId());
         outStoreForm.setStatus(OutStoreStatusEnum.EXECUTING.getValue());
         outStoreFormMapper.updateByPrimaryKeySelective(outStoreForm);
-        yongyouService.addOutForm(actAuditRequest.getId());
+        //yongyouService.addOutForm(actAuditRequest.getId());
+        YongYouThread yongYouThread = new YongYouThread();
+        yongYouThread.setId(actAuditRequest.getId());
+        yongYouThread.start();
         return null;
     }
 
+    class YongYouThread extends Thread {
+        private String id;
+
+        public void setId(String id){
+            this.id = id;
+        }
+
+        @Override
+        public void run() {
+            yongyouService.addOutForm(id);
+        }
+    }
+
     /**
      * 终止审批业务
      * 清空:processInstanceId