From eb9d939661413fc70975b0a75b44126c257bdc49 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 14 Apr 2021 18:27:43 +0800
Subject: [PATCH] 20210414 测试账号的跟随者不返利给交易员
---
src/main/java/com/xcong/excoin/rabbit/producer/FollowProducer.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/rabbit/producer/FollowProducer.java b/src/main/java/com/xcong/excoin/rabbit/producer/FollowProducer.java
index 1c5e466..a29ab8f 100644
--- a/src/main/java/com/xcong/excoin/rabbit/producer/FollowProducer.java
+++ b/src/main/java/com/xcong/excoin/rabbit/producer/FollowProducer.java
@@ -3,6 +3,7 @@
import com.alibaba.fastjson.JSONObject;
import com.xcong.excoin.configurations.RabbitMqConfig;
+import com.xcong.excoin.modules.contract.parameter.dto.ChangeBondDto;
import lombok.extern.slf4j.Slf4j;
import net.sf.json.JSON;
import org.springframework.amqp.rabbit.connection.CorrelationData;
@@ -53,13 +54,9 @@
*
* @param id
*/
- public void sendChangeFollowOrderBond(Long id, BigDecimal changeBond, Integer type) {
+ public void sendChangeFollowOrderBond(ChangeBondDto changeBondDto) {
CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
- Map<String, Object> map = new HashMap<>();
- map.put("id", id);
- map.put("bond", changeBond);
- map.put("type", type);
- String msg = JSONObject.toJSONString(map);
+ String msg = JSONObject.toJSONString(changeBondDto);
log.info("发送跟单保证金调整消息: {}, {}", msg, correlationData.getId());
rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_A, RabbitMqConfig.ROUTINGKEY_FOLLOW_CHANGE_BOND, msg, correlationData);
}
--
Gitblit v1.9.1