From c4fd3f5e400b4b37f8c09f7e33859ba1914ab207 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期五, 15 十月 2021 09:55:33 +0800
Subject: [PATCH] 爱心仓库修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseApplyServiceImpl.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseApplyServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseApplyServiceImpl.java
index e3c4936..898bab6 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseApplyServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseApplyServiceImpl.java
@@ -67,14 +67,13 @@
     public R update(ComActWarehouseApply comActWarehouseApply) {
         ComActWarehouseApplyVO comActWarehouseApply1=this.comActWarehouseApplyDao.selectById(comActWarehouseApply.getId());
         if(comActWarehouseApply.getStatus().equals(ComActWarehouseApplyVO.status.ylq)){
-            ComActWarehouseDonates comActWarehouseDonates=this.comActWarehouseDonatesDao.selectById(comActWarehouseApply.getGoodsId());
+            ComActWarehouseDonates comActWarehouseDonates=this.comActWarehouseDonatesDao.selectById(comActWarehouseApply1.getGoodsId());
             if(comActWarehouseDonates!=null&&comActWarehouseDonates.getSurplusQuantity()>0){
                 comActWarehouseDonates.setSurplusQuantity(comActWarehouseDonates.getSurplusQuantity()-1);
                 this.comActWarehouseDonatesDao.updateById(comActWarehouseDonates);
                 ComActWarehouseOperation comActWarehouseOperation=new ComActWarehouseOperation();
                 comActWarehouseOperation.setGoodsId(comActWarehouseApply.getGoodsId());
                 comActWarehouseOperation.setCreateTime(new Date());
-                comActWarehouseOperation.setContent("爱心传递给了"+comActWarehouseApply1.getApplyName().charAt(0)+"**,"+"减少了"+comActWarehouseApply1.getReason()+"的困难,谢谢你的帮助");
                 comActWarehouseOperation.setType(ComActWarehouseOperation.type.xs);
                 comActWarehouseOperation.setApplyId(comActWarehouseApply.getId());
                 this.comActWarehouseOperationDao.insert(comActWarehouseOperation);

--
Gitblit v1.7.1