| | |
| | | import com.mzl.flower.dto.response.payment.*; |
| | | import com.mzl.flower.service.payment.DeliveryOrderService; |
| | | import com.mzl.flower.service.payment.OrderService; |
| | | import com.mzl.flower.service.payment.UserPaymentSybService; |
| | | import com.mzl.flower.service.payment.UserPaymentV3Service; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | private OrderService orderService; |
| | | |
| | | @Autowired |
| | | private UserPaymentSybService paymentSybService; |
| | | private UserPaymentV3Service paymentV3Service; |
| | | |
| | | @Autowired |
| | | private DeliveryOrderService deliveryOrderService; |
| | |
| | | @ApiImplicitParam(name = "id", value = "订单id", required = true, dataType = "String", paramType = "query"), |
| | | }) |
| | | @ApiOperation(value = "退款") |
| | | public ResponseEntity<ReturnDataDTO> refundOrder(String id) throws Exception { |
| | | public ResponseEntity<ReturnDataDTO> refundOrder(String id) { |
| | | orderService.refundCheckAdmin(id); |
| | | paymentSybService.refundOrder(id); |
| | | paymentV3Service.refundOrder(id); |
| | | return returnData(R.SUCCESS.getCode(), null); |
| | | } |
| | | |