| | |
| | | * @param goodsIds 订单号-商品类型 |
| | | * @return |
| | | */ |
| | | @PostMapping("/getSalesCountByGoodsIds") |
| | | public R<List<Integer>> getSalesCountByGoodsId(String goodsIds){ |
| | | @GetMapping("/getSalesCountByGoodsIds/{goodsIds}") |
| | | public R<List<Integer>> getSalesCountByGoodsId(@PathVariable("goodsIds")String goodsIds){ |
| | | String[] split = goodsIds.split("-"); |
| | | // 取出最后一位字符 类型1查询现金购买 类型2查询积分兑换 |
| | | String s = split[split.length - 1]; |
| | |
| | | * @param goodsIds 订单号-商品类型 |
| | | * @return |
| | | */ |
| | | @PostMapping("/getCodeByOrderId") |
| | | public R<List<String>> getCodeByOrderId(String goodsIds){ |
| | | @GetMapping("/getCodeByOrderId/{goodsIds}") |
| | | public R<List<String>> getCodeByOrderId(@PathVariable("goodsIds") String goodsIds){ |
| | | String[] split = goodsIds.split("-"); |
| | | List<String> strings = new ArrayList<>(); |
| | | for (String s : split) { |
| | |
| | | tExchangeOrder.setCreateTime(LocalDateTime.now()); |
| | | tExchangeOrder.setDelFlag(false); |
| | | exchangeOrderService.save(tExchangeOrder); |
| | | return R.ok(); |
| | | return R.ok(tExchangeOrder.getId()); |
| | | |
| | | } |
| | | |