云联一号 2 weeks ago
parent
commit
f6091ca3a0
1 changed files with 5 additions and 3 deletions
  1. 5 3
      fs-admin/src/main/java/com/fs/his/task/Task.java

+ 5 - 3
fs-admin/src/main/java/com/fs/his/task/Task.java

@@ -653,10 +653,11 @@ public class Task {
                 ErpOrderQueryResponse response= null;
                 try {
                     response=erpOrderService.getOrder(request);
+                    Thread.sleep(1000); // 1000毫秒 = 1秒
                 } catch (Exception e) {
                     logger.error("调用ERP接口异常:",e);
                     try {
-                        Thread.sleep(1000); // 1000毫秒 = 1秒
+
                     } catch (Exception ex) {
 
                     }
@@ -699,11 +700,11 @@ public class Task {
                 ErpOrderQueryResponse response= null;
                 try {
                     response = erpOrderService.getScrmOrder(request);
-
+                    Thread.sleep(1000); // 1000毫秒 = 1秒
                 } catch (Exception e) {
                     logger.error("调用ERP接口异常:",e);
                     try {
-                        Thread.sleep(1000); // 1000毫秒 = 1秒
+
                     } catch (Exception ex) {
 
                     }
@@ -780,6 +781,7 @@ public class Task {
         for (Long l : omsList) {
             try {
                 fsStoreOrderService.createOmsOrder(l);
+                Thread.sleep(1000); // 1000毫秒 = 1秒
             } catch (Exception e) {
                 logger.error("推送订单异常:",e);
                 continue;