From b0b52cbabf7a4bc8e00fc328d14ac05336d0221e Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期六, 15 七月 2023 20:07:44 +0800 Subject: [PATCH] 员工端 --- ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/controller/management/MgtShopController.java | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 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 2d42f48..dcc54e9 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 @@ -69,7 +69,7 @@ @RequestMapping(value = "/exportPageMgtShop", method = RequestMethod.POST) @ApiOperation(value = "导出商户列表") - public void exportPageMgtShop(@RequestBody MgtShopPageDto mgtShopPageDto, HttpServletResponse response) { + public void exportPageMgtShop(MgtShopPageDto mgtShopPageDto, HttpServletResponse response) { Page<MgtShopPageVo> page = new Page<>(); page.setSize(2000); page.setCurrent(1); @@ -128,6 +128,16 @@ return R.ok(); } + @RequestMapping(value = "/frozenMgtShop", method = RequestMethod.POST) + @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "终止合作") + @ApiOperation(value = "冻结商户") + public R frozenMgtShop(@RequestBody MgtFrozenShopDto mgtFrozenShopDto) { + Long userId = SecurityUtils.getUserId(); + mgtFrozenShopDto.setUserId(userId); + shopService.frozenMgtShop(mgtFrozenShopDto); + return R.ok(); + } + @RequestMapping(value = "/changeMgtCooperationTime", method = RequestMethod.POST) @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "修改合作时间") @ApiOperation(value = "修改合作时间") @@ -171,7 +181,7 @@ @RequestMapping(value = "/exportPageMgtShopSuggest", method = RequestMethod.POST) @ApiOperation(value = "导出商户建议列表") - public void exportPageMgtShopSuggest(@RequestBody MgtShopSuggestPageDto mgtShopSuggestPageDto, HttpServletResponse response) { + public void exportPageMgtShopSuggest(MgtShopSuggestPageDto mgtShopSuggestPageDto, HttpServletResponse response) { Long userId = SecurityUtils.getUserId(); mgtShopSuggestPageDto.setUserId(userId); Page<MgtShopSuggestPageVo> page = new Page<>(); @@ -254,7 +264,7 @@ @RequestMapping(value = "/mgtShopAuth", method = RequestMethod.POST) @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户进件") @ApiOperation(value = "平台商户进件") - public R mgtShopAuth(@RequestBody MgtShopAuthDto mgtShopAuthDto) { + public R mgtShopAuth(@Validated @RequestBody MgtShopAuthDto mgtShopAuthDto) { Long userId = SecurityUtils.getUserId(); mgtShopAuthDto.setUserId(userId); shopService.mgtShopAuth(mgtShopAuthDto); -- Gitblit v1.7.1