From a016ab9f97b76c3b4905b890662d344d47f24005 Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期三, 28 六月 2023 18:25:14 +0800 Subject: [PATCH] 联调bug和统计完善 --- ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/management/MgtShopController.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 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 c8dac50..541079d 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 @@ -13,6 +13,7 @@ import com.ruoyi.system.api.domain.vo.MgtSimpleShopVo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @@ -80,7 +81,7 @@ @RequestMapping(value = "/createMgtShop", method = RequestMethod.POST) @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "编辑商户") @ApiOperation(value = "平台编辑商户") - public R createMgtShop(@RequestBody MgtEditShopDto mgtEditShopDto) { + public R createMgtShop(@Validated @RequestBody MgtEditShopDto mgtEditShopDto) { Long userId = SecurityUtils.getUserId(); mgtEditShopDto.setUserId(userId); shopService.createShop(mgtEditShopDto); @@ -109,6 +110,14 @@ return R.ok(); } + @RequestMapping(value = "/transferMgtShop", method = RequestMethod.POST) + @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "转移客户") + @ApiOperation(value = "转移客户") + public R transferMgtShop(@RequestBody MgtTransferShopDto mgtTransferShopDto) { + shopService.transferMgtShop(mgtTransferShopDto); + return R.ok(); + } + @RequestMapping(value = "/terminateMgtCooperation", method = RequestMethod.POST) @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "终止合作") @ApiOperation(value = "终止合作") -- Gitblit v1.7.1