From 546be8a1bafdfc804575a8d07a5d9f2306c29c42 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期四, 19 六月 2025 11:20:58 +0800
Subject: [PATCH] 修改直播列表

---
 ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/concole/GoodsController.java |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/concole/GoodsController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/concole/GoodsController.java
index 9fcde73..560174c 100644
--- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/concole/GoodsController.java
+++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/concole/GoodsController.java
@@ -7,6 +7,7 @@
 import com.ruoyi.goods.service.goods.ShopGoodsService;
 import com.ruoyi.system.api.domain.dto.AppShopGoodsGetDto;
 import com.ruoyi.system.api.domain.dto.GoodsTotalChangeDto;
+import com.ruoyi.system.api.domain.dto.MerGoodsPriceListDto;
 import com.ruoyi.system.api.domain.poji.goods.Goods;
 import com.ruoyi.system.api.domain.poji.goods.GoodsFile;
 import com.ruoyi.system.api.domain.poji.goods.ShopGoods;
@@ -109,20 +110,41 @@
      * @description  通过id获取商品价格列表
      * @author  jqs
      * @date    2023/7/3 10:01
-     * @param goodsIds
+     * @param merGoodsPriceListDto
      * @return  R<List<MerGoodsPriceListVo>>
      */
     @PostMapping("/listGoodsPriceByGoodsId")
-    public R<List<MerGoodsPriceListVo>> listGoodsPriceByGoodsId(@RequestBody String goodsIds)
+    public R<List<MerGoodsPriceListVo>> listGoodsPriceByGoodsId(@RequestBody MerGoodsPriceListDto merGoodsPriceListDto)
     {
-        List<MerGoodsPriceListVo> goodsPriceListVoList = goodsService.listGoodsPriceByGoodsId(goodsIds);
+        List<MerGoodsPriceListVo> goodsPriceListVoList = goodsService.listGoodsPriceByGoodsId(merGoodsPriceListDto);
         return R.ok(goodsPriceListVoList);
     }
 
+    /**
+     * @description  改变商品统计
+     * @author  jqs
+     * @date    2023/9/5 15:01
+     * @param goodsTotalChangeDtoList
+     * @return  R
+     */
     @PostMapping("/changeGoodsTotal")
     public R changeGoodsTotal(@RequestBody List<GoodsTotalChangeDto> goodsTotalChangeDtoList)
     {
         goodsTotalService.changeGoodsTotal(goodsTotalChangeDtoList);
         return R.ok();
     }
+
+    /**
+     * @description  获取分类商品名
+     * @author  jqs
+     * @date    2023/8/12 18:39
+     * @param classId
+     * @return  R<List<String>>
+     */
+    @PostMapping("/listGoodsNameByGoodsClass")
+    public R<List<String>> listGoodsNameByGoodsClass(@RequestBody Long classId)
+    {
+        List<String> goodsNameList = goodsService.listGoodsNameByGoodsClass(classId);
+        return R.ok(goodsNameList);
+    }
 }

--
Gitblit v1.7.1