优惠券使用

### 1.调用方法 `public BigDecimal discountAmount(BigDecimal skuPrice, Integer count, String... userCouponId)` ### 2. 位置 `fast.app.coupon.UseCoupon` ### 3. 优惠券类型 ```java new MJCouponImpl(); // 满减券 new ZKCouponImpl(); // 折扣券 new DJCouponImpl(); // 代金券 new MultipleCouponImpl(); // 多种优惠券同时使用 ``` ### 4.使用方式 * **指定**优惠券类型 ```java // 例如指定满减券 UseCoupon useCoupon = new UseCoupon(new MJCouponImpl()); BigDecimal 优惠后的价格 = useCoupon.discountAmount(商品原价, 购买总数, 用户使用的优惠券id); ``` * **不确定**优惠券类型 ```java UseCoupon useCoupon = new UseCoupon(); BigDecimal 优惠后的价格 = useCoupon.discountAmount(商品原价, 购买总数, 用户使用的优惠券id1[id2,...]); ``` ### 5.其他 * 优惠后的价格保留两位小数