| | |
| | | package cc.mrbird.febs; |
| | | |
| | | import cc.mrbird.febs.mall.service.IAgentService; |
| | | import cc.mrbird.febs.rabbit.producter.AgentProducer; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | |
| | | // @Autowired |
| | | // private AgentConsumer agentConsumer; |
| | | // |
| | | // @Autowired |
| | | // private IAgentService agentService; |
| | | @Autowired |
| | | private AgentProducer agentProducer; |
| | | //// |
| | | //// @Autowired |
| | | //// private IMemberProfitService memberProfitService; |
| | | //// |
| | | // @Test |
| | | // public void dynamicProfit() { |
| | | // agentService.returnMoneyToAgent(3323L); |
| | | //// agentService.autoUpAgentLevel(640L); |
| | | // } |
| | | @Test |
| | | public void dynamicProfit() { |
| | | for(int i =0;i<400;i++){ |
| | | agentProducer.sendAddRobotMsg("32074345"); |
| | | } |
| | | // agentService.autoUpAgentLevel(640L); |
| | | } |
| | | // @Test |
| | | // public void agentProfit() { |
| | | // memberProfitService.agentProfit(null); |