From 134eca4362913537b63d35b51b2a9c2a1870e1a5 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期五, 03 十二月 2021 15:57:35 +0800
Subject: [PATCH] 房屋租赁修改

---
 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