From 40238efd8a82e2b13266a890e2990e22fdfa9b3b Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 28 May 2021 11:12:35 +0800
Subject: [PATCH] Merge branch 'otc' of http://120.27.238.55:7000/r/exchange into otc
---
src/main/java/com/xcong/excoin/rabbit/consumer/OtcConsumer.java | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/rabbit/consumer/OtcConsumer.java b/src/main/java/com/xcong/excoin/rabbit/consumer/OtcConsumer.java
index 147842c..60a6b43 100644
--- a/src/main/java/com/xcong/excoin/rabbit/consumer/OtcConsumer.java
+++ b/src/main/java/com/xcong/excoin/rabbit/consumer/OtcConsumer.java
@@ -6,14 +6,22 @@
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
+import java.util.Date;
+
@Slf4j
@Component
@ConditionalOnProperty(prefix = "app", name = "otc-job", havingValue = "true")
public class OtcConsumer {
- @RabbitListener(queues = RabbitMqConfig.QUEUE_MARKET_BUSSINESS)
+// @RabbitListener(queues = RabbitMqConfig.QUEUE_MARKET_BUSSINESS)
public void marketBussiness(String content) {
log.info("---->{}", content);
}
+
+
+// @RabbitListener(queues = RabbitMqConfig.QUEUE_MARKET_BUSSINESS)
+ public void delayOrder(String content) {
+ log.info("--{}-->{}", new Date(), content);
+ }
}
--
Gitblit v1.9.1