Authored by chenchao

calculate tariff amount by using initial price

... ... @@ -153,8 +153,9 @@ public class ChargeService {
double newFinalAmount = Math.max(0, YHMath.sub(oldFinalAmount, realCutPrice.doubleValue()));
//税费
BigDecimal goodsPrice = chargeGoods.getGoodsPrice();
AmountCutPolicy tariffCutPolicy = chargeContext.getChargeParam().getTariffCutPolicy();
SingleFeeDetail tariffFeeDetail = calculateTariffAmount(goodsRealPrice, tariffRate, tariffCutPolicy);
SingleFeeDetail tariffFeeDetail = calculateTariffAmount(goodsPrice, tariffRate, tariffCutPolicy);
chargeResult.setTariffFee(tariffFeeDetail);
//加上税费
double tariffAmount = tariffFeeDetail.getAmount();
... ...
... ... @@ -16,7 +16,7 @@ import java.util.ArrayList;
import java.util.List;
/**
* 购物
* 购物
*/
@Component
public class ShoppingRiskWatchDog {
... ...