...
|
...
|
@@ -203,6 +203,7 @@ public class CollectiveCouponService { |
|
|
condition.setUseLimitType(Byte.valueOf(couponUseLimitTypeEnum.getLimitType()));
|
|
|
List<Coupon> top = couponViewMapper.selectByAssociatedPrdNCouponType(condition);
|
|
|
logger.info("getCouponTopListOfPrdDetail condition {} top {}",condition, top);
|
|
|
datas = productLimitValueFilter.filter(datas, req.getProductId());
|
|
|
if (CollectionUtils.isNotEmpty(top)){
|
|
|
datas.add(top.get(0));
|
|
|
}
|
...
|
...
|
@@ -217,6 +218,7 @@ public class CollectiveCouponService { |
|
|
}
|
|
|
condition.setCouponType(couponTypeEnum.getCode());
|
|
|
List<Coupon> shippingTop = couponViewMapper.selectByAssociatedPrdNCouponType(condition);
|
|
|
datas = productLimitValueFilter.filter(datas, req.getProductId());
|
|
|
logger.info("getCouponTopListOfPrdDetail condition {} top {}",condition, shippingTop);
|
|
|
if (CollectionUtils.isNotEmpty(shippingTop)){
|
|
|
datas.add(shippingTop.get(0));
|
...
|
...
|
@@ -225,7 +227,7 @@ public class CollectiveCouponService { |
|
|
}
|
|
|
}
|
|
|
|
|
|
return productLimitValueFilter.filter(datas, req.getProductId());
|
|
|
return datas;
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|