...
|
...
|
@@ -10,7 +10,7 @@ import java.math.BigDecimal; |
|
|
@Data
|
|
|
public class ServiceFeeRate {
|
|
|
public String getPayChannelPercent(){
|
|
|
BigDecimal rate = payChannelRate;
|
|
|
BigDecimal rate = payChannelRate == null ? BigDecimal.ZERO : payChannelRate;
|
|
|
return rate.multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_HALF_UP) + "%";
|
|
|
}
|
|
|
/**
|
...
|
...
|
@@ -20,17 +20,17 @@ public class ServiceFeeRate { |
|
|
* 后期活动可根据活动进行减免,每个卖家可收费不一样
|
|
|
* )
|
|
|
*/
|
|
|
BigDecimal goodsPaymentRate = new BigDecimal(0.05D).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
BigDecimal goodsPaymentRate;// = new BigDecimal(0.05D).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
|
|
|
/**
|
|
|
* 保证金抽成(暂定20%,后期可调整)
|
|
|
*/
|
|
|
BigDecimal earnestMoneyRate = new BigDecimal(0.20D).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
BigDecimal earnestMoneyRate;// = new BigDecimal(0.20D).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
/**
|
|
|
* 支付渠道费,调用银联支付接口时实时扣款
|
|
|
* (支付宝0.55%、微信均为0.6%,统一对用户收取0.6%,前期优惠策略可暂定0)
|
|
|
*/
|
|
|
BigDecimal payChannelRate = new BigDecimal(0.006D).setScale(4, BigDecimal.ROUND_HALF_UP);
|
|
|
BigDecimal payChannelRate ;//= new BigDecimal(0.006D).setScale(4, BigDecimal.ROUND_HALF_UP);
|
|
|
|
|
|
|
|
|
public static ServiceFeeRate getServiceFeeRate(){
|
...
|
...
|
|