From 480f4b49dde7d746031b6054327474d24a2e15ce Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期四, 31 八月 2023 15:55:09 +0800
Subject: [PATCH] 修改库存问题

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerCreditsExchangeServiceImpl.java |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerCreditsExchangeServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerCreditsExchangeServiceImpl.java
index be8e1f7..10753e1 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerCreditsExchangeServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerCreditsExchangeServiceImpl.java
@@ -92,25 +92,25 @@
             return R.fail("兑换用户id不能为空");
         }
 
-        if(StringUtils.isEmpty(goods.getGoodNum()))
-        {
-            return R.fail("商品库存不足");
-        }
-        else
-        {
-            int goodNum=Integer.valueOf(goods.getGoodNum());
-            if(goodNum<=0)
-            {
-                return R.fail("商品库存不足");
-            }
-
-            goodNum--;
-
-            VolunteerIntegralMerchantVO vo=new VolunteerIntegralMerchantVO();
-            vo.setId(goods.getId());
-            vo.setGoodNum(goodNum+"");
-            goodsService.updateById(vo);
-        }
+//        if(StringUtils.isEmpty(goods.getGoodNum()))
+//        {
+//            return R.fail("商品库存不足");
+//        }
+//        else
+//        {
+//            int goodNum=Integer.valueOf(goods.getGoodNum());
+//            if(goodNum<=0)
+//            {
+//                return R.fail("商品库存不足");
+//            }
+//
+//            goodNum--;
+//
+//            VolunteerIntegralMerchantVO vo=new VolunteerIntegralMerchantVO();
+//            vo.setId(goods.getId());
+//            vo.setGoodNum(goodNum+"");
+//            goodsService.updateById(vo);
+//        }
 
 
         //增加积分明细记录

--
Gitblit v1.7.1