...
|
...
|
@@ -4,9 +4,6 @@ import com.google.common.base.Joiner; |
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yoho.ufo.coupon.model.CouponAndProductConditions;
|
|
|
import com.yoho.ufo.coupon.model.ProductCondition;
|
|
|
|
|
|
import static com.yoho.ufo.coupon.model.ProductLimitType.*;
|
|
|
|
|
|
import com.yoho.ufo.coupon.model.ProductLimitType;
|
|
|
import com.yoho.ufo.coupon.util.Strings;
|
|
|
import com.yoho.ufo.model.coupon.Coupon;
|
...
|
...
|
@@ -22,6 +19,9 @@ import java.util.List; |
|
|
import java.util.Objects;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
import static com.yoho.ufo.coupon.model.ProductLimitType.Exclude_Product;
|
|
|
import static com.yoho.ufo.coupon.model.ProductLimitType.Specific_Product;
|
|
|
|
|
|
public class CouponAndProductConditionsBuilder {
|
|
|
|
|
|
private static final String SKUP_FORBID_TYPE_NONE = "0";
|
...
|
...
|
@@ -82,7 +82,7 @@ public class CouponAndProductConditionsBuilder { |
|
|
case Specific_Product:
|
|
|
case Exclude_Product:
|
|
|
case ALL:
|
|
|
coupon.setProductLimitValue(null);
|
|
|
coupon.setProductLimitValue("");
|
|
|
break;
|
|
|
case Specific_Brand:
|
|
|
case Specific_Series:
|
...
|
...
|
|