cloudroam
2024-11-04 e2a3161003417cd37aaa98fe062b26048d4be093
src/main/java/com/mzl/flower/web/payment/OrderController.java
@@ -11,7 +11,7 @@
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;
@@ -36,7 +36,7 @@
    private OrderService orderService;
    @Autowired
    private UserPaymentSybService paymentSybService;
    private UserPaymentV3Service paymentV3Service;
    @Autowired
    private DeliveryOrderService deliveryOrderService;
@@ -175,9 +175,9 @@
            @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);
    }