From 905077448a20fe1f06c9303152e83a6c9463541c Mon Sep 17 00:00:00 2001 From: huliguo <2023611923@qq.com> Date: 星期四, 10 四月 2025 19:21:54 +0800 Subject: [PATCH] 商家端 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsController.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsController.java index e0d3790..7c85c9e 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GoodsController.java @@ -10,6 +10,7 @@ import com.ruoyi.common.core.web.page.PageInfo; import com.ruoyi.common.redis.annotation.DistributedLock; import com.ruoyi.other.api.domain.Goods; +import com.ruoyi.other.dto.AddGoodsDTO; import com.ruoyi.other.service.GoodsService; import com.ruoyi.other.vo.GoodsVO; import io.swagger.annotations.*; @@ -33,16 +34,20 @@ @Resource private GoodsService goodsService; + + + + /** * 添加商品 */ @PostMapping("/addGoods") @ApiOperation(value = "发布商品", tags = {"管理后台-商品管理"}) public R<Void> addGoods(@RequestBody Goods goods) { - if(goods.getPurchaseLimit()==null){ + /* if(goods.getPurchaseLimit()==null){ goods.setPurchaseLimit(-1); } - goodsService.addGoods(goods); + goodsService.addGoods(goods);*/ return R.ok(); } -- Gitblit v1.7.1