From 09c3fd87f7113f3b4e3066b718f9b9a4b11d821d Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 10 Aug 2023 15:51:15 +0800
Subject: [PATCH] 数据修改
---
src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java | 174 +++++++++++----------------------------------------------
1 files changed, 34 insertions(+), 140 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java b/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java
index 69bcc03..ec8a3e4 100644
--- a/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java
+++ b/src/main/java/cc/mrbird/febs/rabbit/producer/ChainProducer.java
@@ -8,6 +8,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
+import javax.validation.constraints.NotNull;
import java.util.UUID;
/**
@@ -34,159 +35,52 @@
}
- public void sendAchieveTreeMsg(Long id) {
- log.info("发送业绩树消息:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ACHIEVE_TREE.getExchange(), QueueEnum.ACHIEVE_TREE.getRoute(), id, correlationData);
- }
-
/**
- * 消费者在tfc应用
- *
- * @param data
+ * speed 支付订单
+ * @param orderId 订单ID
*/
- public void sendTfcFee(String data) {
- log.info("发送提现手续费消息:{}", data);
+ public void sendSpeedPayOrderMsg(Long orderId) {
+ log.info("sendSpeedPayOrderMsg:{}", orderId);
CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.WITHDRAW_FEE.getExchange(), QueueEnum.WITHDRAW_FEE.getRoute(), data, correlationData);
+ rabbitTemplate.convertAndSend(QueueEnum.SPEED_PAY_ORDER.getExchange(), QueueEnum.SPEED_PAY_ORDER.getRoute(), orderId, correlationData);
}
/**
- * 发送手续费分发消息
- *
- * @param id
- */
- public void sendFeeDistributeMsg(Long id) {
- log.info("发送手续费分发消息:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.DISTRIB_PROFIT.getExchange(), QueueEnum.DISTRIB_PROFIT.getRoute(), id, correlationData);
- }
-
- /**
- * 层级奖励分发消息
- *
- * 会员ID
- * @param id
- */
- public void sendLevelProfitMsg(Long id) {
- log.info("层级奖励分发消息:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.LEVEL_PROFIT.getExchange(), QueueEnum.LEVEL_PROFIT.getRoute(), id, correlationData);
- }
-
- /**
- * 计算是否有人出局分发消息
- */
- public void sendMemberOutMsg(Long id) {
- log.info("计算是否有人出局:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.MEMBER_OUT.getExchange(), QueueEnum.MEMBER_OUT.getRoute(), id, correlationData);
- }
-
- /**
- * 转账拨币
- */
- public void sendBnbTransferMsg(Long id) {
- log.info("开始转账拨币第一步:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.BNB_TRANSFER.getExchange(), QueueEnum.BNB_TRANSFER.getRoute(), id, correlationData);
- }
-
- /**
- * 转账拨币
- */
- public void sendBnbTransferTestMsg(Long id) {
- log.info("开始转账拨币第二步:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.BNB_TRANSFER_TEST.getExchange(), QueueEnum.BNB_TRANSFER_TEST.getRoute(), id, correlationData);
- }
-
- /**
- * 代理升级
- */
- public void sendAgentUpMsg(Long id) {
- log.info("代理升级:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.BNB_AGENT_UP.getExchange(), QueueEnum.BNB_AGENT_UP.getRoute(), id, correlationData);
- }
-
- /**
- * A 入金的消息
- * @param id
- */
- public void sendAntACoinInMsg(Long id) {
- log.info("开始---A 入金的消息:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN.getExchange(), QueueEnum.ANT_A_CION_IN.getRoute(), id, correlationData);
- }
-
- /**
- * A 入金,转入A底池
- * @param id
- */
- public void sendAntACoinInAPoolMsg(Long id) {
- log.info("开始---A 入金,转入A底池:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_A_POOL.getExchange(), QueueEnum.ANT_A_CION_IN_A_POOL.getRoute(), id, correlationData);
- }
-
- /**
- * A 入金,转入B底池
- * @param id
- */
- public void sendAntACoinInBPoolMsg(Long id) {
- log.info("开始---A 入金,转入B底池:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_B_POOL.getExchange(), QueueEnum.ANT_A_CION_IN_B_POOL.getRoute(), id, correlationData);
- }
-
- /**
- * A 入金,5%节点
- * @param id
- */
- public void sendAntACoinInNodeMsg(Long id) {
- log.info("开始---A 入金,转入5%节点:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_NODE.getExchange(), QueueEnum.ANT_A_CION_IN_NODE.getRoute(), id, correlationData);
- }
-
- /**
- * A 入金,10%极差奖
- * @param id
- */
- public void sendAntACoinInLevelMsg(Long id) {
- log.info("开始---A 入金,转入10%极差奖:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_IN_LEVEL.getExchange(), QueueEnum.ANT_A_CION_IN_LEVEL.getRoute(), id, correlationData);
- }
-
- /**
- * A 提现
- * @param id
- */
- public void sendAntACoinOutMsg(Long id) {
- log.info("开始---A 提现:{}", id);
- CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_A_CION_OUT.getExchange(), QueueEnum.ANT_A_CION_OUT.getRoute(), id, correlationData);
- }
-
- /**
- * A 代理升级
+ * speed 代理升级
* @param memberId
*/
- public void sendAntMemberLevelMsg(Long memberId) {
- log.info("开始---A 代理升级:{}", memberId);
+ public void sendAutoLevelUpTeamMsg(@NotNull Long memberId) {
+ log.info("sendAutoLevelUpTeamMsg:{}", memberId);
CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_MEMBER_LEVEL.getExchange(), QueueEnum.ANT_MEMBER_LEVEL.getRoute(), memberId, correlationData);
+ rabbitTemplate.convertAndSend(QueueEnum.SPEED_LEVEL_UP_TEAM.getExchange(), QueueEnum.SPEED_LEVEL_UP_TEAM.getRoute(), memberId, correlationData);
}
/**
- * A k线数据
- * @param type
+ * speed 代理升级
+ * @param memberId
*/
- public void sendAntKLineMsg(int type) {
- log.info("开始---A k线数据:{}", type);
+ public void sendAutoLevelUpMsg(@NotNull Long memberId) {
+ log.info("sendAutoLevelUpMsg:{}", memberId);
CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- rabbitTemplate.convertAndSend(QueueEnum.ANT_K_LINE.getExchange(), QueueEnum.ANT_K_LINE.getRoute(), type, correlationData);
+ rabbitTemplate.convertAndSend(QueueEnum.SPEED_LEVEL_UP.getExchange(), QueueEnum.SPEED_LEVEL_UP.getRoute(), memberId, correlationData);
}
+
+ /**
+ * speed 直推返利
+ */
+ public void sendDirectPerkMsg(@NotNull Long memberId) {
+ log.info("sendDirectPerkMsg:{}", memberId);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.SPEED_DIRECT_PERK.getExchange(), QueueEnum.SPEED_DIRECT_PERK.getRoute(), memberId, correlationData);
+ }
+
+ /**
+ * speed 卖出资产
+ */
+ public void sendSalePackageMsg(@NotNull Long memberId) {
+ log.info("sendSalePackageMsg:{}", memberId);
+ CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
+ rabbitTemplate.convertAndSend(QueueEnum.SPEED_SALE_PACKAGE.getExchange(), QueueEnum.SPEED_SALE_PACKAGE.getRoute(), memberId, correlationData);
+ }
+
}
--
Gitblit v1.9.1