gongfuzhu 11 月之前
父節點
當前提交
b41d332a8b

+ 6 - 0
SpringBatchServiceServer/src/main/java/com/zswl/cloud/springBtach/server/core/controller/PaymentController.java

@@ -72,6 +72,12 @@ public class PaymentController {
     public ResultContent refund(@PathVariable("goodsId") String goodsId) {
         return paymentServer.refundIntervene(goodsId);
     }
+    @ApiOperation("平台退款")
+    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
+    @RequestMapping(value = "platformRefund", method = RequestMethod.POST)
+    public ResultContent platformRefund(@RequestBody RefundParam2Model refundParam2Model) {
+        return paymentServer.platformRefund(refundParam2Model);
+    }
 
 
     @ApiOperation("取消退款")

+ 4 - 0
SpringBatchServiceServer/src/main/java/com/zswl/cloud/springBtach/server/core/service/PaymentService.java

@@ -94,6 +94,10 @@ public class PaymentService {
         return paymentService2.refundIntervene(userId,goodsId);
     }
 
+    public ResultContent platformRefund(RefundParam2Model refundParam2Model) {
+        return paymentService2.platformRefund(refundParam2Model);
+    }
+
 
     public ResultContent unRefund(ApplicantRefundParam2Model applicantRefundParam2Model) {
         String userId = authHelper.getCurrentUser().getUserId();