rx
2023-12-07 a095fb55c6f742ee67cf1193a3e6ba8c29b1828a
修改成本部门额度计算
1个文件已修改
4 ■■■■ 已修改文件
phi_platform_user/src/main/java/com/hx/phip/service/impl/CommonShopQuotaConfigServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 + "总数量额度已超出,无法申请");
                        }