|
@@ -1,9 +1,9 @@
|
|
|
package com.kym.service.factory;
|
|
package com.kym.service.factory;
|
|
|
|
|
|
|
|
-import com.kym.common.exception.BusinessException;
|
|
|
|
|
import com.kym.entity.admin.Activity;
|
|
import com.kym.entity.admin.Activity;
|
|
|
import com.kym.service.miniapp.DiscountService;
|
|
import com.kym.service.miniapp.DiscountService;
|
|
|
import com.kym.service.miniapp.impl.CouponDiscountHandle;
|
|
import com.kym.service.miniapp.impl.CouponDiscountHandle;
|
|
|
|
|
+import com.kym.service.miniapp.impl.NoDiscountHandle;
|
|
|
import com.kym.service.miniapp.impl.RechargeRightsDiscountHandle;
|
|
import com.kym.service.miniapp.impl.RechargeRightsDiscountHandle;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
@@ -20,7 +20,7 @@ public class DiscountStrategyFactory {
|
|
|
} else if (Activity.DISCOUNT_TYPE_服务费折扣权益.equals(discountType)) {
|
|
} else if (Activity.DISCOUNT_TYPE_服务费折扣权益.equals(discountType)) {
|
|
|
return new RechargeRightsDiscountHandle();
|
|
return new RechargeRightsDiscountHandle();
|
|
|
} else {
|
|
} else {
|
|
|
- throw new BusinessException("未配置相关策略");
|
|
|
|
|
|
|
+ return new NoDiscountHandle();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|