mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
移除main方法
This commit is contained in:
@@ -795,48 +795,5 @@ public class SettleOrderReportServiceImpl implements SettleOrderReportService {
|
||||
return resultVO;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
List<String> 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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user