|
@@ -18,17 +18,16 @@ public class DiscountStrategyFactory {
|
|
|
|
|
|
|
|
private static OrderRechargeRightsService orderRechargeRightsService;
|
|
private static OrderRechargeRightsService orderRechargeRightsService;
|
|
|
private static UserRechargeRightsService userRechargeRightsService;
|
|
private static UserRechargeRightsService userRechargeRightsService;
|
|
|
-
|
|
|
|
|
private static OrderCouponService orderCouponService;
|
|
private static OrderCouponService orderCouponService;
|
|
|
private static UserCouponService userCouponService;
|
|
private static UserCouponService userCouponService;
|
|
|
private static CouponService couponService;
|
|
private static CouponService couponService;
|
|
|
|
|
|
|
|
public DiscountStrategyFactory(OrderRechargeRightsService orderRechargeRightsService, UserRechargeRightsService userRechargeRightsService, OrderCouponService orderCouponService, UserCouponService userCouponService, CouponService couponService) {
|
|
public DiscountStrategyFactory(OrderRechargeRightsService orderRechargeRightsService, UserRechargeRightsService userRechargeRightsService, OrderCouponService orderCouponService, UserCouponService userCouponService, CouponService couponService) {
|
|
|
- this.orderRechargeRightsService = orderRechargeRightsService;
|
|
|
|
|
- this.userRechargeRightsService = userRechargeRightsService;
|
|
|
|
|
- this.orderCouponService = orderCouponService;
|
|
|
|
|
- this.userCouponService = userCouponService;
|
|
|
|
|
- this.couponService = couponService;
|
|
|
|
|
|
|
+ DiscountStrategyFactory.orderRechargeRightsService = orderRechargeRightsService;
|
|
|
|
|
+ DiscountStrategyFactory.userRechargeRightsService = userRechargeRightsService;
|
|
|
|
|
+ DiscountStrategyFactory.orderCouponService = orderCouponService;
|
|
|
|
|
+ DiscountStrategyFactory.userCouponService = userCouponService;
|
|
|
|
|
+ DiscountStrategyFactory.couponService = couponService;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static DiscountService getDiscountStrategy(String discountType) {
|
|
public static DiscountService getDiscountStrategy(String discountType) {
|