| | |
| | | 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; |
| | |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | @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); |
| | | // agentProducer.sendReturnMoneyMsg(52L); |
| | | agentService.returnMoneyToAgent(52L); |
| | | } |
| | | |
| | | @Test |
| | | public void bigdecimalTest() { |
| | | BigDecimal aa = new BigDecimal("1.345"); |
| | | |
| | | 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(); |
| | | } |
| | | } |