| | |
| | | |
| | | @PostMapping("/cart/delete/batch") |
| | | @ApiOperation(value = "批量删除购物车商品") |
| | | public ResponseEntity<ReturnDataDTO<?>> deleteBatchFlower4Cart(CartDeleteDTO dto){ |
| | | public ResponseEntity<ReturnDataDTO<?>> deleteBatchFlower4Cart(@RequestBody CartDeleteDTO dto){ |
| | | if(dto == null || CollectionUtils.isEmpty(dto.getIds())){ |
| | | throw new ValidationException("ids不能为空"); |
| | | } |
| | |
| | | |
| | | @PostMapping("/order/commit") |
| | | @ApiOperation(value = "提交订单") |
| | | public ResponseEntity<ReturnDataDTO<?>> commitOrder(@RequestBody OrderCommitDTO dto){ |
| | | public ResponseEntity<ReturnDataDTO<?>> commitOrder(@RequestBody OrderCommitDTO dto) throws Exception { |
| | | Map<Long, PriceDTO > priceMap = new HashMap<>(); |
| | | PreOrderDTO p = orderService.processPreOrderInfo(dto.getFlowers(), priceMap); |
| | | Map map; |