Browse Source

缴费记录新增退款按钮

xlq 1 week ago
parent
commit
c741c96026
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/main/java/com/qmrb/system/controller/OrderController.java

+ 10 - 0
src/main/java/com/qmrb/system/controller/OrderController.java

@@ -239,6 +239,16 @@ public class OrderController extends CommonController {
         return process(() -> orderService.refundOrder(toolWxConfigService.findConf(), orderService.getById(outTradeNo)));
     }
 
+
+    @Operation(summary = "后台订单退款", security = {@SecurityRequirement(name = "Authorization")})
+    @GetMapping("/{id}/refundOrder")
+    public Result<?> refundOrders(
+            @Parameter(description = "订单表ID") @PathVariable Long id
+    ) {
+        CommonResult<String> process = process(() -> orderService.refundOrder(toolWxConfigService.findConf(), orderService.getById(id)));
+        return Result.success(process);
+    }
+
     /**
      * 支付回调给微信确认
      *