From ff926ba7b7fe5e7a3edffd994f605acd552a27db Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期五, 02 六月 2023 16:54:20 +0800 Subject: [PATCH] 商户进件支付框架补充 --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsController.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsController.java index c20e76b..386a9bc 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsController.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/management/MgtGoodsController.java @@ -7,7 +7,10 @@ import com.ruoyi.goods.domain.dto.MgtGoodsPageDto; import com.ruoyi.goods.domain.vo.MerGoodsPageVo; import com.ruoyi.goods.domain.vo.MgtGoodsPageVo; +import com.ruoyi.goods.domain.vo.MgtGoodsTotalVo; import com.ruoyi.goods.service.goods.GoodsService; +import com.ruoyi.system.api.domain.dto.MgtBaseDto; +import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; @@ -46,5 +49,15 @@ return R.ok(page.setRecords(merGoodsPageVoList)); } + @RequestMapping(value = "/getMgtGoodsTotal", method = RequestMethod.POST) + @ApiOperation(value = "获取商品统计") + public R<MgtGoodsTotalVo> getMgtGoodsTotal(@RequestBody MgtBaseDto mgtBaseDto) { + Long userId = SecurityUtils.getUserId(); + mgtBaseDto.setUserId(userId); + MgtGoodsTotalVo mgtGoodsTotalVo = goodsService.getMgtGoodsTotal(); + return R.ok(mgtGoodsTotalVo); + } + + } -- Gitblit v1.7.1