| | |
| | | import com.mzl.flower.dto.response.payment.OrderDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderItemListDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderListDTO; |
| | | import com.mzl.flower.entity.payment.Order; |
| | | import com.mzl.flower.service.payment.OrderService; |
| | | import com.mzl.flower.service.payment.UserPaymentV3Service; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query") |
| | | }) |
| | | public ResponseEntity<ReturnDataDTO<?>> confirmOrderReceive(String id){ |
| | | orderService.confirmOrderReceive(id); |
| | | Order o = orderService.confirmOrderReceive(id); |
| | | orderService.processAfterReceive(o); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | |
| | | @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query"), |
| | | }) |
| | | @ApiOperation(value = "退款") |
| | | public ResponseEntity<ReturnDataDTO> refundOrder(String id) { |
| | | public ResponseEntity<ReturnDataDTO> refundOrder(String id) throws Exception { |
| | | orderService.refundCheck(id); |
| | | paymentV3Service.refundOrder(id); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | |
| | | orderService.deleteOrder(id); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @GetMapping(value = "/copyOrder") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query"), |
| | | }) |
| | | @ApiOperation(value = "再来一单") |
| | | public ResponseEntity<ReturnDataDTO> copyOrder(String id) { |
| | | String message=orderService.copyOrder(id); |
| | | return returnData(R.SUCCESS.getCode(),null, message); |
| | | } |
| | | |
| | | } |