From 9219e18a9b2fb06b95b5c881b057d3fde7270ca3 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Thu, 25 Feb 2021 10:28:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/whole_new' into whole_new

---
 src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java b/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java
index ddc8c7d..d629102 100644
--- a/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java
+++ b/src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java
@@ -20,6 +20,7 @@
 import com.xcong.excoin.rabbit.pricequeue.whole.WholePriceDataModel;
 import com.xcong.excoin.rabbit.producer.OrderProducer;
 import com.xcong.excoin.utils.dingtalk.DingTalkUtils;
+import lombok.SneakyThrows;
 import lombok.extern.slf4j.Slf4j;
 
 import javax.validation.constraints.NotNull;
@@ -109,10 +110,11 @@
      */
     public static void sendWholePrice(@NotNull Long memberId) {
         EXECUTOR.execute(new Runnable() {
+            @SneakyThrows
             @Override
             public void run() {
+                Thread.sleep(500);
                 log.info("全仓操作价格");
-
                 OrderProducer orderProducer = SpringContextHolder.getBean(OrderProducer.class);
                 orderProducer.sendWholePrice(memberId.toString());
             }

--
Gitblit v1.9.1