From f1e88066e0af2a0852fe1095da87c04018c9cf5a Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 11 Sep 2023 18:11:05 +0800
Subject: [PATCH] 优惠卷
---
src/main/java/cc/mrbird/febs/rabbit/consumer/AgentConsumer.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/rabbit/consumer/AgentConsumer.java b/src/main/java/cc/mrbird/febs/rabbit/consumer/AgentConsumer.java
index a32d98e..9fe3dea 100644
--- a/src/main/java/cc/mrbird/febs/rabbit/consumer/AgentConsumer.java
+++ b/src/main/java/cc/mrbird/febs/rabbit/consumer/AgentConsumer.java
@@ -72,4 +72,14 @@
log.error("订单返利异常:", e);
}
}
+
+ @RabbitListener(queues = QueueConstants.ORDER_COUPON)
+ public void getOrderCoupon(Long orderId) {
+ log.info("收到使用优惠卷消息:{}", orderId);
+ try {
+ memberProfitService.getOrderCoupon(orderId);
+ } catch (Exception e) {
+ log.error("使用优惠卷异常:", e);
+ }
+ }
}
--
Gitblit v1.9.1