From 07de03ccae02d00be243911a003115fe9b24f863 Mon Sep 17 00:00:00 2001 From: huliguo <2023611923@qq.com> Date: 星期二, 08 四月 2025 16:07:07 +0800 Subject: [PATCH] 订单部分+个人中心部分 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/GoodsServiceImpl.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/GoodsServiceImpl.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/GoodsServiceImpl.java index d84a0f6..6823bf4 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/GoodsServiceImpl.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/GoodsServiceImpl.java @@ -258,7 +258,7 @@ @Override @Transactional(rollbackFor = Exception.class) public void addGoods(Goods goods) { - goods.setSaleNum(0); + /* goods.setSaleNum(0); goods.setStatus(GoodsStatus.DOWN.getCode()); goodsMapper.insert(goods); @@ -270,18 +270,18 @@ throw new NullPointerException("请选择指定门店"); } saveGoodsShopList(goodsShopList, goods.getId()); - } + }*/ } @Override public void updateManageGoods(Goods goods) { - this.updateById(goods); + /* this.updateById(goods); //修改个别字段 this.update(new LambdaUpdateWrapper<Goods>().eq(Goods::getId, goods.getId()).set(Goods::getSellingPrice, goods.getSellingPrice()) .set(Goods::getIntegral, goods.getIntegral())); // 指定门店 List<GoodsShop> goodsShopList = goods.getGoodsShopList(); - saveGoodsShopList(goodsShopList, goods.getId()); + saveGoodsShopList(goodsShopList, goods.getId());*/ } @@ -322,7 +322,7 @@ goodsShop.setAddress(shop.getAddress()); } } - goods.setGoodsShopList(goodsShops); +// goods.setGoodsShopList(goodsShops); return goods; } -- Gitblit v1.7.1