From b2fac6c0de140bd68ed3c60bcdb7440d490b81c8 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 25 Aug 2022 15:31:40 +0800
Subject: [PATCH] 20220822
---
src/test/java/cc/mrbird/febs/AgentTest.java | 32 ++++++++++++++++++--------------
1 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/src/test/java/cc/mrbird/febs/AgentTest.java b/src/test/java/cc/mrbird/febs/AgentTest.java
index a25e932..853c2c3 100644
--- a/src/test/java/cc/mrbird/febs/AgentTest.java
+++ b/src/test/java/cc/mrbird/febs/AgentTest.java
@@ -12,6 +12,7 @@
import cc.mrbird.febs.mall.service.IAgentService;
import cc.mrbird.febs.mall.vo.ApiMallActWinDetailsVo;
import cc.mrbird.febs.mall.vo.ApiMallAwardDetailsVo;
+import cc.mrbird.febs.rabbit.consumer.AgentConsumer;
import cc.mrbird.febs.rabbit.producter.AgentProducer;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
@@ -529,19 +530,19 @@
@Test
public void insertAgentTest() {
- AgentInfo agentInfo = new AgentInfo();
- agentInfo.setOrderType(2);
- agentInfo.setOrderCnt(2000);
- agentInfo.setLastCnt(3);
- agentInfo.setDirectIncome(BigDecimal.valueOf(50));
- agentInfo.setTeamIncome(BigDecimal.valueOf(15));
- agentInfo.setTeamIncomeType(2);
-
- DataDictionaryCustom data = new DataDictionaryCustom();
- data.setType("AGENT_LEVEL_REQUIRE");
- data.setCode(AgentLevelEnum.FOUR_LEVEL.name());
- data.setValue(JSONObject.toJSONString(agentInfo));
- dataDictionaryCustomMapper.insert(data);
+// AgentInfo agentInfo = new AgentInfo();
+// agentInfo.setOrderType(2);
+// agentInfo.setOrderCnt(2000);
+// agentInfo.setLastCnt(3);
+// agentInfo.setDirectIncome(BigDecimal.valueOf(50));
+// agentInfo.setTeamIncome(BigDecimal.valueOf(15));
+// agentInfo.setTeamIncomeType(2);
+//
+// DataDictionaryCustom data = new DataDictionaryCustom();
+// data.setType("AGENT_LEVEL_REQUIRE");
+// data.setCode(AgentLevelEnum.FOUR_LEVEL.name());
+// data.setValue(JSONObject.toJSONString(agentInfo));
+// dataDictionaryCustomMapper.insert(data);
}
@Test
@@ -617,8 +618,11 @@
}
+ @Autowired
+ private AgentConsumer agentConsumer;
+
@Test
public void orderReturnTest() {
- agentProducer.sendOrderReturn(1L);
+ agentConsumer.orderReturnMoney("7");
}
}
--
Gitblit v1.9.1