From 4b4239c73b70c6e6087442c258777ec31d935014 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期三, 30 八月 2023 17:02:22 +0800
Subject: [PATCH] 修改小程序商家商品新增

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerCreditsExchangeServiceImpl.java |   21 ---------------------
 1 files changed, 0 insertions(+), 21 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 1348577..df1c7f9 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
@@ -172,27 +172,6 @@
             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);
-        }
-
-
         int num1=integral-Integer.valueOf(item.getPalyIntegral());
         loginUserInfoVOR.setLoveIntegral(num1+"");
         userService.putUser(loginUserInfoVOR);

--
Gitblit v1.7.1