| | |
| | | import cc.mrbird.febs.mall.mapper.*; |
| | | import cc.mrbird.febs.mall.quartz.ProfitJob; |
| | | import cc.mrbird.febs.mall.service.IAgentService; |
| | | import cc.mrbird.febs.mall.service.IApiMallOrderInfoService; |
| | | import cc.mrbird.febs.mall.vo.*; |
| | | import cc.mrbird.febs.pay.util.WechatConfigure; |
| | | import cc.mrbird.febs.rabbit.consumer.AgentConsumer; |
| | |
| | | private MallGoodsMapper mallGoodsMapper; |
| | | @Autowired |
| | | private MallGoodsImagesMapper goodsImagesMapper; |
| | | @Autowired |
| | | private IApiMallOrderInfoService iApiMallOrderInfoService; |
| | | @Test |
| | | public void getCouponAmountMap(){ |
| | | Long memberCouponId = 139L; |
| | | List<AddOrderItemDto> items = new ArrayList<>(); |
| | | AddOrderItemDto addOrderItemDto = new AddOrderItemDto(); |
| | | addOrderItemDto.setSkuId(185L); |
| | | addOrderItemDto.setCnt(2); |
| | | items.add(addOrderItemDto); |
| | | Map<Long, BigDecimal> couponAmountMap = iApiMallOrderInfoService.getCouponAmountMap(memberCouponId, items); |
| | | for (Map.Entry<Long, BigDecimal> entry : couponAmountMap.entrySet()) { |
| | | System.out.println("Key: " + entry.getKey() + ", Value: " + entry.getValue()); |
| | | } |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | |
| | | // } |
| | | // |
| | | // |
| | | // @Autowired |
| | | // private AgentConsumer agentConsumer; |
| | | // |
| | | // @Test |
| | | // public void orderReturnTest() { |
| | | // agentConsumer.orderReturnMoney("7"); |
| | | // } |
| | | @Autowired |
| | | private AgentConsumer agentConsumer; |
| | | |
| | | @Test |
| | | public void orderReturnTest() { |
| | | agentConsumer.getScoreMsg(215L); |
| | | } |
| | | } |