public class OverDiscountPrimeStrategy extends OverDiscountStrategy { public BigDecimal getDiscount(BigDecimal total) { // 满100减20优惠*会员7折: BigDecimal temp=super.getDiscount(total);//满减后折后 return temp.add(total.subtract(temp).multiply(new BigDecimal("0.3")).setScale(2, RoundingMode.DOWN)); } }
Sign in to make a reply
Best of Me