| | |
| | | import cc.mrbird.febs.mall.entity.MallOrderItem; |
| | | import cc.mrbird.febs.mall.mapper.MallOrderInfoMapper; |
| | | import cc.mrbird.febs.mall.mapper.MallOrderItemMapper; |
| | | import cc.mrbird.febs.mall.quartz.OrderSettlementJob; |
| | | import cc.mrbird.febs.mall.service.IAgentService; |
| | | import cc.mrbird.febs.mall.service.IMallAchieveService; |
| | | import cc.mrbird.febs.mall.service.IMemberProfitService; |
| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | |
| | | @Test |
| | | public void dynamicProfit() { |
| | | memberProfitService.dynamicProfit(16L); |
| | | memberProfitService.dynamicProfit(21L); |
| | | } |
| | | |
| | | |
| | | @Test |
| | | public void staticProfit() { |
| | | memberProfitService.staticProfit(); |
| | | public void agentProfit() { |
| | | memberProfitService.agentProfit(null); |
| | | } |
| | | |
| | | |
| | | // @Test |
| | | // public void staticProfit() { |
| | | // memberProfitService.staticProfit(new Date()); |
| | | // } |
| | | |
| | | @Test |
| | | public void thankfulProfit() { |
| | | memberProfitService.thankfulProfit(); |
| | | memberProfitService.thankfulProfit(new Date()); |
| | | } |
| | | |
| | | @Test |
| | |
| | | |
| | | @Test |
| | | public void directorProfitTest() { |
| | | memberProfitService.storeAndDirectorProfit(null); |
| | | memberProfitService.storeAndDirectorProfit(new Date()); |
| | | } |
| | | |
| | | @Autowired |
| | |
| | | mallAchieveService.add(item.getId()); |
| | | } |
| | | } |
| | | |
| | | @Test |
| | | public void paramTest() { |
| | | Map<String, Integer> map = new HashMap<>(); |
| | | BigDecimal amount = new BigDecimal("100"); |
| | | map.put("amount", 1); |
| | | changeAmount(map); |
| | | System.out.println(map.get("amount")); |
| | | } |
| | | |
| | | public void changeAmount(Map<String, Integer> amount) { |
| | | amount.put("amount", 2); |
| | | } |
| | | |
| | | @Test |
| | | public void scorePool(){ |
| | | memberProfitService.scorePool(); |
| | | } |
| | | |
| | | @Test |
| | | public void staticProfit(){ |
| | | memberProfitService.staticProfit(null); |
| | | } |
| | | |
| | | @Autowired |
| | | private OrderSettlementJob orderSettlementJob; |
| | | |
| | | @Test |
| | | public void orderSettlementJobTest() { |
| | | // orderSettlementJob.normalGoodsSettlementJob(); |
| | | |
| | | mallAchieveService.add(83L); |
| | | } |
| | | } |