From 020b6c18958b795afa3fad9897d030fd01df3f57 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 13 十月 2023 12:44:25 +0800
Subject: [PATCH] 对接第三方分账接口

---
 ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/management/MgtShopController.java |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/management/MgtShopController.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/management/MgtShopController.java
index d872cfb..23bd684 100644
--- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/management/MgtShopController.java
+++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/management/MgtShopController.java
@@ -80,7 +80,7 @@
         }
         List<MgtShopPageVo> mgtShopPageVoList = shopService.pageMgtShop(page,mgtShopPageDto);
         ExcelUtil<MgtShopPageVo> util = new ExcelUtil<MgtShopPageVo>(MgtShopPageVo.class);
-        util.exportExcel(response, mgtShopPageVoList, "用户订单列表");
+        util.exportExcel(response, mgtShopPageVoList, "商户列表");
     }
 
     @RequestMapping(value = "/createMgtShop", method = RequestMethod.POST)
@@ -274,12 +274,25 @@
     @RequestMapping(value = "/mgtShopAuth", method = RequestMethod.POST)
     @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户进件")
     @ApiOperation(value = "平台商户进件")
-    public R mgtShopAuth(@Validated @RequestBody MgtShopAuthDto mgtShopAuthDto) throws Exception {
+    public R mgtShopAuth(@Validated @RequestBody MgtShopAuthDto mgtShopAuthDto) {
         Long userId = SecurityUtils.getUserId();
         mgtShopAuthDto.setUserId(userId);
         shopService.mgtShopAuth(mgtShopAuthDto);
         return R.ok();
     }
+
+
+    @RequestMapping(value = "/mgtShopHFTXAuth", method = RequestMethod.POST)
+    @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户进件")
+    @ApiOperation(value = "平台商户进件")
+    public R mgtShopHFTXAuth(@Validated @RequestBody MgtShopHFTXAuthDto mgtShopAuthDto) {
+        Long userId = SecurityUtils.getUserId();
+        mgtShopAuthDto.setUserId(userId);
+        shopService.mgtShopHFTXAuth(mgtShopAuthDto);
+        return R.ok();
+    }
+
+
 
     @RequestMapping(value = "/getMgtShopAuth", method = RequestMethod.POST)
     @ApiOperation(value = "获取商户进件信息")
@@ -295,5 +308,17 @@
         return R.ok(mgtShopAuthCodeVo);
     }
 
+    @RequestMapping(value = "/mgtAddProfitSharingReceiver", method = RequestMethod.POST)
+    @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户添加分账方")
+    @ApiOperation(value = "平台商户添加分账方")
+    public R mgtAddProfitSharingReceiver(@RequestBody MgtShopAuthGetDto mgtShopAuthGetDto){
+        Long userId = SecurityUtils.getUserId();
+        mgtShopAuthGetDto.setUserId(userId);
+        shopService.addProfitSharingReceiver(mgtShopAuthGetDto);
+        return R.ok();
+    }
+
+
+
 
 }

--
Gitblit v1.7.1