From f6a3cd55d6913e8477a5b543a775535622594f7a Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Tue, 1 Jul 2025 14:03:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4main=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SettleOrderReportServiceImpl.java | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/SettleOrderReportServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/SettleOrderReportServiceImpl.java index 9c3e5a033..000a85067 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/SettleOrderReportServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/SettleOrderReportServiceImpl.java @@ -795,48 +795,5 @@ public class SettleOrderReportServiceImpl implements SettleOrderReportService { return resultVO; } - public static void main(String[] args) { - List list = Lists.newArrayList( - "0.06", - "0.06", - "0.09", - "0.06", - "0.05", - "0.09", - "0.02", - "0.18", - "0.10", - "0.03", - "0.06", - "0.11"); - - // 总手续费 - BigDecimal totalFeeAmount = BigDecimal.ZERO; - BigDecimal totalTradeAmount = BigDecimal.ZERO; - - for (String s : list) { - BigDecimal settleAmount = new BigDecimal(s); - BigDecimal fee = settleAmount.multiply(new BigDecimal(Constants.FEE_RATES)).setScale(2, RoundingMode.UP); - // 交易金额 = 结算金额 - 手续费 - BigDecimal tradeAmount = settleAmount.subtract(fee); - - totalFeeAmount = totalFeeAmount.add(fee); - totalTradeAmount = totalTradeAmount.add(tradeAmount); - } - - System.out.println("总手续费" + totalFeeAmount); - System.out.println("总交易金额" + totalTradeAmount); - - - // BigDecimal settleAmount = new BigDecimal("330.37"); - // // 计算手续费 = 结算金额 * 0.55% - // BigDecimal fee = settleAmount.multiply(new BigDecimal(Constants.FEE_RATES)); - // SplitSettleAmountVO resultVO = new SplitSettleAmountVO(); - // resultVO.setSettleAmount(settleAmount); - // resultVO.setFeeAmount(fee); - // resultVO.setTradeAmount(settleAmount.subtract(fee)); - // System.out.println(JSON.toJSONString(resultVO)); - } - }