Authored by TANLING

优惠券限制

1 package com.yohoufo.common.helper; 1 package com.yohoufo.common.helper;
2 2
3 import com.google.common.collect.Lists; 3 import com.google.common.collect.Lists;
4 -import com.yoho.service.model.promotion.ProductLimitValueBo;  
5 import com.yohobuy.ufo.model.order.bo.ShoppingProductInfo; 4 import com.yohobuy.ufo.model.order.bo.ShoppingProductInfo;
6 import com.yohobuy.ufo.model.promotion.constant.CouponProductLimitTypeEnum; 5 import com.yohobuy.ufo.model.promotion.constant.CouponProductLimitTypeEnum;
  6 +import com.yohobuy.ufo.model.promotion.request.ProductLimitValueBo;
7 import com.yohobuy.ufo.model.promotion.response.ProductLimitInfo; 7 import com.yohobuy.ufo.model.promotion.response.ProductLimitInfo;
8 import org.apache.commons.collections.CollectionUtils; 8 import org.apache.commons.collections.CollectionUtils;
9 import org.slf4j.Logger; 9 import org.slf4j.Logger;
1 package com.yohoufo.promotion.convert; 1 package com.yohoufo.promotion.convert;
2 2
3 import com.google.common.collect.Lists; 3 import com.google.common.collect.Lists;
4 -import com.yoho.service.model.promotion.ProductLimitValueBo;  
5 import com.yohobuy.ufo.model.promotion.CouponSimpleBo; 4 import com.yohobuy.ufo.model.promotion.CouponSimpleBo;
6 import com.yohobuy.ufo.model.promotion.UserCouponsBo; 5 import com.yohobuy.ufo.model.promotion.UserCouponsBo;
7 import com.yohobuy.ufo.model.promotion.constant.*; 6 import com.yohobuy.ufo.model.promotion.constant.*;
  7 +import com.yohobuy.ufo.model.promotion.request.ProductLimitValueBo;
8 import com.yohobuy.ufo.model.promotion.response.CouponInfo; 8 import com.yohobuy.ufo.model.promotion.response.CouponInfo;
9 import com.yohobuy.ufo.model.promotion.response.ProductLimitInfo; 9 import com.yohobuy.ufo.model.promotion.response.ProductLimitInfo;
10 import com.yohoufo.common.helper.ProductLimitCollector; 10 import com.yohoufo.common.helper.ProductLimitCollector;
@@ -6,13 +6,13 @@ import com.google.common.collect.Range; @@ -6,13 +6,13 @@ import com.google.common.collect.Range;
6 import com.yoho.core.redis.cluster.operations.serializer.RedisKeyBuilder; 6 import com.yoho.core.redis.cluster.operations.serializer.RedisKeyBuilder;
7 import com.yoho.error.ServiceError; 7 import com.yoho.error.ServiceError;
8 import com.yoho.error.exception.ServiceException; 8 import com.yoho.error.exception.ServiceException;
9 -import com.yoho.service.model.promotion.ProductLimitValueBo;  
10 import com.yohobuy.ufo.model.promotion.CouponSimpleBo; 9 import com.yohobuy.ufo.model.promotion.CouponSimpleBo;
11 import com.yohobuy.ufo.model.promotion.UserCouponsBo; 10 import com.yohobuy.ufo.model.promotion.UserCouponsBo;
12 import com.yohobuy.ufo.model.promotion.UserCouponsListBo; 11 import com.yohobuy.ufo.model.promotion.UserCouponsListBo;
13 import com.yohobuy.ufo.model.promotion.constant.CouponProductLimitTypeEnum; 12 import com.yohobuy.ufo.model.promotion.constant.CouponProductLimitTypeEnum;
14 import com.yohobuy.ufo.model.promotion.constant.CouponUseStatusEnum; 13 import com.yohobuy.ufo.model.promotion.constant.CouponUseStatusEnum;
15 import com.yohobuy.ufo.model.promotion.constant.CouponsStatusEnum; 14 import com.yohobuy.ufo.model.promotion.constant.CouponsStatusEnum;
  15 +import com.yohobuy.ufo.model.promotion.request.ProductLimitValueBo;
16 import com.yohoufo.dal.promotion.CouponProductLimitMapper; 16 import com.yohoufo.dal.promotion.CouponProductLimitMapper;
17 import com.yohoufo.promotion.model.CouponReceiveChannel; 17 import com.yohoufo.promotion.model.CouponReceiveChannel;
18 import com.yohobuy.ufo.model.promotion.request.CouponSendType; 18 import com.yohobuy.ufo.model.promotion.request.CouponSendType;