Helius
2021-01-29 08133a4fa45cb8ed3da68fea587c6e3199743918
modify
1 files modified
8 ■■■■■ changed files
src/main/java/com/xcong/excoin/utils/ThreadPoolUtils.java 8 ●●●●● patch | view | raw | blame | history
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;
@@ -108,8 +109,15 @@
     * @param memberId
     */
    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());
    }
        });
    }
}