From 9c7fd8a8086a4c6cde6e142e8e8b93a49bfdf13d Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期一, 18 十月 2021 16:22:27 +0800
Subject: [PATCH] 爱心义仓bug修改

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

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseDonatesServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseDonatesServiceImpl.java
index cf1787b..1519cb7 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseDonatesServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActWarehouseDonatesServiceImpl.java
@@ -236,6 +236,9 @@
         }
         BeanUtils.copyProperties(comActWarehouseDonatesDTO, comActWarehouseDonates);
         Date nowDate = new Date();
+        if (nonNull(comActWarehouseDonatesDTO.getQuantity())) {
+            comActWarehouseDonates.setSurplusQuantity(comActWarehouseDonatesDTO.getQuantity());
+        }
         comActWarehouseDonates.setSigningAt(nowDate);
         comActWarehouseDonates.setStatus(2);
         int result = this.baseMapper.updateById(comActWarehouseDonates);

--
Gitblit v1.7.1