From a095fb55c6f742ee67cf1193a3e6ba8c29b1828a Mon Sep 17 00:00:00 2001
From: rx <auster_i@163.com>
Date: 星期四, 07 十二月 2023 11:32:20 +0800
Subject: [PATCH] 修改成本部门额度计算

---
 phi_platform_user/src/main/java/com/hx/phip/service/impl/CommonShopQuotaConfigServiceImpl.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/phi_platform_user/src/main/java/com/hx/phip/service/impl/CommonShopQuotaConfigServiceImpl.java b/phi_platform_user/src/main/java/com/hx/phip/service/impl/CommonShopQuotaConfigServiceImpl.java
index 9cd1dec..a057360 100644
--- a/phi_platform_user/src/main/java/com/hx/phip/service/impl/CommonShopQuotaConfigServiceImpl.java
+++ b/phi_platform_user/src/main/java/com/hx/phip/service/impl/CommonShopQuotaConfigServiceImpl.java
@@ -199,7 +199,7 @@
 
                     BigDecimal surplusMonthPrice;
                     if (quotaConfig.getQuatoPrice() != null) {
-                        surplusMonthPrice = quotaConfig.getQuatoPrice().subtract(useQuotaTotal.getUseAmount());
+                        surplusMonthPrice = quotaConfig.getQuatoPrice().subtract(useQuotaMonth.getUseAmount());
                         if (applyAmount.compareTo(surplusMonthPrice) == 1) {
                             throw new TipsException(asDeptName + "鏈堥搴﹀凡瓒呭嚭锛屾棤娉曠敵璇�");
                         }
@@ -207,7 +207,7 @@
 
                     Integer surplusTotalNum;
                     if (quotaConfig.getQuatoTotalNum() != null) {
-                        surplusTotalNum = quotaConfig.getQuatoTotalNum() - useQuotaMonth.getUseNum();
+                        surplusTotalNum = quotaConfig.getQuatoTotalNum() - useQuotaTotal.getUseNum();
                         if (applyNum > surplusTotalNum) {
                             throw new TipsException(asDeptName + "鎬绘暟閲忛搴﹀凡瓒呭嚭锛屾棤娉曠敵璇�");
                         }

--
Gitblit v1.8.0