From 7958f1dddb8a7f4e70d232b07a7703955ecedae0 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期六, 26 八月 2023 12:45:33 +0800
Subject: [PATCH] 优化diamante

---
 service-fee/src/main/java/com/java110/fee/discount/impl/LateFeeByDayRule.java |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/service-fee/src/main/java/com/java110/fee/discount/impl/LateFeeByDayRule.java b/service-fee/src/main/java/com/java110/fee/discount/impl/LateFeeByDayRule.java
old mode 100644
new mode 100755
index 3269f34..e5fcd79
--- a/service-fee/src/main/java/com/java110/fee/discount/impl/LateFeeByDayRule.java
+++ b/service-fee/src/main/java/com/java110/fee/discount/impl/LateFeeByDayRule.java
@@ -17,9 +17,9 @@
 
 import com.java110.core.smo.IComputeFeeSMO;
 import com.java110.dto.fee.FeeDto;
-import com.java110.dto.feeDiscount.ComputeDiscountDto;
-import com.java110.dto.feeDiscount.FeeDiscountDto;
-import com.java110.dto.feeDiscount.FeeDiscountSpecDto;
+import com.java110.dto.fee.ComputeDiscountDto;
+import com.java110.dto.fee.FeeDiscountDto;
+import com.java110.dto.fee.FeeDiscountSpecDto;
 import com.java110.fee.discount.IComputeDiscount;
 import com.java110.intf.fee.IFeeInnerServiceSMO;
 import com.java110.utils.util.DateUtil;
@@ -29,6 +29,7 @@
 import java.math.BigDecimal;
 import java.util.Date;
 import java.util.List;
+import java.util.Map;
 
 /**
  * @desc add by 鍚村鏂� 12:43
@@ -96,9 +97,9 @@
             return computeDiscountDto;
         }
 
-        double price = computeFeeSMOImpl.getFeePrice(feeDtos.get(0));
+        Map feePriceAll = computeFeeSMOImpl.getFeePrice(feeDtos.get(0));
 
-        BigDecimal priceDec = new BigDecimal(price);
+        BigDecimal priceDec = new BigDecimal(feePriceAll.get("feePrice").toString());
 
         BigDecimal dayDec = new BigDecimal(day);
 
@@ -114,4 +115,15 @@
         computeDiscountDto.setFeeDiscountSpecs(feeDiscountSpecDtos);
         return computeDiscountDto;
     }
+
+    public static void main(String[] args) throws Exception {
+        int day = 316;
+        double money = 0.0;
+        for (int i = 1; i< day+1;i++){
+            money += ((124.51/30 * (i-1) +money)  * 0.003);
+            System.out.println("绗�"+i+"澶� 杩濈害閲� = "+money + ",璁$畻鍏紡涓猴細(124.51/30 * ("+i+"-1) + " + money +") * 0.003");
+        }
+
+        System.out.println(money);
+    }
 }

--
Gitblit v1.8.0