Bladeren bron

退款列表

skyline 1 jaar geleden
bovenliggende
commit
048fec7d34
1 gewijzigde bestanden met toevoegingen van 12 en 2 verwijderingen
  1. 12 2
      car-wash-admin/src/main/java/com/kym/admin/controller/CustomController.java

+ 12 - 2
car-wash-admin/src/main/java/com/kym/admin/controller/CustomController.java

@@ -2,10 +2,10 @@ package com.kym.admin.controller;
 
 import cn.dev33.satoken.annotation.SaCheckPermission;
 import com.kym.common.R;
-import com.kym.common.annotation.ApiLog;
 import com.kym.common.annotation.SysLog;
 import com.kym.entity.queryParams.CommonQueryParam;
 import com.kym.service.PayLogService;
+import com.kym.service.RefundLogService;
 import com.kym.service.UserService;
 import com.kym.service.wechat.WxPayService;
 import org.springframework.web.bind.annotation.*;
@@ -23,11 +23,14 @@ public class CustomController {
     private final UserService customUserService;
     private final PayLogService payLogService;
 
+    private final RefundLogService refundLogService;
+
     private final WxPayService wxPayService;
 
-    public CustomController(UserService customUserService, PayLogService payLogService, WxPayService wxPayService) {
+    public CustomController(UserService customUserService, PayLogService payLogService, RefundLogService refundLogService, WxPayService wxPayService) {
         this.customUserService = customUserService;
         this.payLogService = payLogService;
+        this.refundLogService = refundLogService;
         this.wxPayService = wxPayService;
     }
 
@@ -44,6 +47,13 @@ public class CustomController {
         return R.success(payLogService.listRecharge(params));
     }
 
+    @SysLog("退款记录列表")
+    @GetMapping("/listRefundLog")
+    public R<?> listRefundLog(@ModelAttribute CommonQueryParam params) {
+        return R.success(refundLogService.listRefundLog(params));
+    }
+
+
     @SysLog("用户退款申请")
     @PostMapping("/applyRefund")
     @ResponseBody