update 创建对公账户

This commit is contained in:
2023-08-31 08:52:40 +08:00
parent 6dabf90018
commit 40c3d7cc86
2 changed files with 26 additions and 14 deletions

View File

@@ -1,5 +1,6 @@
package com.jsowell.pile.service.impl;
import com.alibaba.fastjson2.JSON;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.google.common.base.Joiner;
@@ -645,5 +646,16 @@ public class SettleOrderReportServiceImpl implements ISettleOrderReportService {
return resultVO;
}
public static void main(String[] args) {
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));
}
}