Authored by wujiexiang

覆盖旧值

@@ -4,9 +4,6 @@ import com.google.common.base.Joiner; @@ -4,9 +4,6 @@ import com.google.common.base.Joiner;
4 import com.yoho.error.exception.ServiceException; 4 import com.yoho.error.exception.ServiceException;
5 import com.yoho.ufo.coupon.model.CouponAndProductConditions; 5 import com.yoho.ufo.coupon.model.CouponAndProductConditions;
6 import com.yoho.ufo.coupon.model.ProductCondition; 6 import com.yoho.ufo.coupon.model.ProductCondition;
7 -  
8 -import static com.yoho.ufo.coupon.model.ProductLimitType.*;  
9 -  
10 import com.yoho.ufo.coupon.model.ProductLimitType; 7 import com.yoho.ufo.coupon.model.ProductLimitType;
11 import com.yoho.ufo.coupon.util.Strings; 8 import com.yoho.ufo.coupon.util.Strings;
12 import com.yoho.ufo.model.coupon.Coupon; 9 import com.yoho.ufo.model.coupon.Coupon;
@@ -22,6 +19,9 @@ import java.util.List; @@ -22,6 +19,9 @@ import java.util.List;
22 import java.util.Objects; 19 import java.util.Objects;
23 import java.util.UUID; 20 import java.util.UUID;
24 21
  22 +import static com.yoho.ufo.coupon.model.ProductLimitType.Exclude_Product;
  23 +import static com.yoho.ufo.coupon.model.ProductLimitType.Specific_Product;
  24 +
25 public class CouponAndProductConditionsBuilder { 25 public class CouponAndProductConditionsBuilder {
26 26
27 private static final String SKUP_FORBID_TYPE_NONE = "0"; 27 private static final String SKUP_FORBID_TYPE_NONE = "0";
@@ -82,7 +82,7 @@ public class CouponAndProductConditionsBuilder { @@ -82,7 +82,7 @@ public class CouponAndProductConditionsBuilder {
82 case Specific_Product: 82 case Specific_Product:
83 case Exclude_Product: 83 case Exclude_Product:
84 case ALL: 84 case ALL:
85 - coupon.setProductLimitValue(null); 85 + coupon.setProductLimitValue("");
86 break; 86 break;
87 case Specific_Brand: 87 case Specific_Brand:
88 case Specific_Series: 88 case Specific_Series: