Browse Source

客服介入

gongfuzhu 11 months ago
parent
commit
c8feb0b6bc

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

@@ -64,6 +64,14 @@ public class PaymentController {
     }
 
 
+    @ApiOperation("客服介入")
+    @ResourceAuth(value = "user", type = AuthType.User)
+    @RequestMapping(value = "refundIntervene/{goodsId}", method = RequestMethod.GET)
+    public ResultContent refund(@PathVariable("goodsId") String goodsId) {
+        return paymentServer.refundIntervene(goodsId);
+    }
+
+
     @ApiOperation("取消退款")
     @ResourceAuth(value = "user", type = AuthType.User)
     @RequestMapping(value = "unRefund", method = RequestMethod.POST)
@@ -164,6 +172,7 @@ public class PaymentController {
     public ResultContent applyWithdrawals(@RequestBody @Valid AuditWithdrawalsModel auditWithdrawalsModel) {
         return paymentServer.applyWithdrawals(auditWithdrawalsModel);
     }
+
     @ApiOperation("提现查询")
     @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
     @RequestMapping(value = "account/withdrawals/query/{batchNo}", method = RequestMethod.GET)
@@ -195,7 +204,7 @@ public class PaymentController {
     }
 
     @ApiOperation("提现到账通知")
-    @RequestMapping(value = "sync/withdrawals",method = RequestMethod.POST)
+    @RequestMapping(value = "sync/withdrawals", method = RequestMethod.POST)
     public String syncWithdrawals(@RequestBody JSONObject jsonObject) {
 
         SyncWithdrawals syncWithdrawals = new SyncWithdrawals();

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

@@ -89,6 +89,11 @@ public class PaymentService {
         return paymentService2.applicantRefund(applicantRefundParam2Model);
     }
 
+    public ResultContent refundIntervene(String goodsId) {
+        String userId = authHelper.getCurrentUser().getUserId();
+        return paymentService2.refundIntervene(userId,goodsId);
+    }
+
 
     public ResultContent unRefund(ApplicantRefundParam2Model applicantRefundParam2Model) {
         String userId = authHelper.getCurrentUser().getUserId();