From aab1ad64e309fa904cc9cbeba4d76b533a5b6c71 Mon Sep 17 00:00:00 2001
From: chengf <cgf12138@163.com>
Date: 星期三, 20 八月 2025 16:46:28 +0800
Subject: [PATCH] 暂存0820
---
service-fee/src/main/java/com/java110/fee/discount/impl/VacantHousingDiscountImpl.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/service-fee/src/main/java/com/java110/fee/discount/impl/VacantHousingDiscountImpl.java b/service-fee/src/main/java/com/java110/fee/discount/impl/VacantHousingDiscountImpl.java
index caaf200..df51592 100755
--- a/service-fee/src/main/java/com/java110/fee/discount/impl/VacantHousingDiscountImpl.java
+++ b/service-fee/src/main/java/com/java110/fee/discount/impl/VacantHousingDiscountImpl.java
@@ -88,7 +88,9 @@
BigDecimal cycleDec = new BigDecimal(feeDiscountDto.getCycles());
double discountPrice = priceDec.multiply(cycleDec).multiply(new BigDecimal(1.0 - rate)).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue();
-
+ if (discountPrice < 0) {
+ return null;
+ }
ComputeDiscountDto computeDiscountDto = new ComputeDiscountDto();
computeDiscountDto.setDiscountId(feeDiscountDto.getDiscountId());
computeDiscountDto.setDiscountType(FeeDiscountDto.DISCOUNT_TYPE_DV);
--
Gitblit v1.8.0