|  |  | 
 |  |  | 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; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @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 | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Test | 
 |  |  |     public void profitJobTest() { | 
 |  |  |         profitJob.profitJob(); | 
 |  |  | //        profitJob.profitJob(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private AgentConsumer agentConsumer; | 
 |  |  |  | 
 |  |  |     @Test | 
 |  |  |     public void orderReturnTest() { | 
 |  |  |         agentConsumer.orderReturnMoney("7"); | 
 |  |  |     } | 
 |  |  | } |