xiaoyong931011
2021-09-29 279e2cbedd1741f769f08cf626e1b0188996ac5f
src/test/java/cc/mrbird/febs/AgentTest.java
@@ -5,6 +5,7 @@
import cc.mrbird.febs.mall.entity.AgentInfo;
import cc.mrbird.febs.mall.entity.DataDictionaryCustom;
import cc.mrbird.febs.mall.mapper.DataDictionaryCustomMapper;
import cc.mrbird.febs.mall.quartz.ProfitJob;
import cc.mrbird.febs.mall.service.IAgentService;
import cc.mrbird.febs.rabbit.producter.AgentProducer;
import com.alibaba.fastjson.JSONObject;
@@ -99,9 +100,16 @@
    @Test
    public void autoLevelUp() {
        // agentService.autoUpAgentLevel(3L);
//        agentProducer.sendAutoLevelUpMsg(3L);
//        agentProducer.sendAutoLevelUpMsg(5L);
        agentProducer.sendReturnMoneyMsg(14L);
        agentProducer.sendReturnMoneyMsg(2L);
    }
    @Test
    public void returnMoney() {
        // agentService.autoUpAgentLevel(3L);
//        agentProducer.sendAutoLevelUpMsg(5L);
        agentService.returnMoneyToAgent(32L);
    }
    @Test
@@ -111,4 +119,12 @@
        System.out.println(aa.setScale(2, RoundingMode.DOWN));
        System.out.println(aa.setScale(2, RoundingMode.UP));
    }
    @Autowired
    private ProfitJob profitJob;
    @Test
    public void profitJobTest() {
        profitJob.profitJob();
    }
}