From 86a985c549f08450fa9d9490f1fe5af4572e32f4 Mon Sep 17 00:00:00 2001 From: rentaiming <806181062@qq.com> Date: 星期三, 31 七月 2024 20:19:31 +0800 Subject: [PATCH] 修改bug --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsGroupPurchaseController.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsGroupPurchaseController.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsGroupPurchaseController.java index 751059b..2b33aa4 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsGroupPurchaseController.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsGroupPurchaseController.java @@ -92,6 +92,9 @@ goodsSku.setStock(i2); goodsSkuMapper.updateById(goodsSku); goodsGroupPurchaseInfoServiceImpl.removeById(one1); + }else{ + one1.setCurrentNumber(i); + goodsGroupPurchaseInfoServiceImpl.updateById(one1); } }else{ if (i==0){ -- Gitblit v1.7.1