...
|
...
|
@@ -69,12 +69,18 @@ public class PromotionMatchService { |
|
|
*/
|
|
|
private boolean matchProduct(PromotionCond.CondItem condItem, Map<String, Object> productMap) {
|
|
|
PromotionMatchFactor promotionMatchFactor = new PromotionMatchFactor();
|
|
|
promotionMatchFactor.setBrandId(MapUtils.getIntValue(productMap, "brand_id"));
|
|
|
promotionMatchFactor.setSmallSortId(MapUtils.getIntValue(productMap, "small_sort_id"));
|
|
|
promotionMatchFactor.setMiddleSortId(MapUtils.getIntValue(productMap, "middle_sort_id"));
|
|
|
promotionMatchFactor.setMaxSortId(MapUtils.getIntValue(productMap, "max_sort_id"));
|
|
|
promotionMatchFactor.setIspromotion(MapUtils.getIntValue(productMap, "is_promotion"));
|
|
|
promotionMatchFactor.setProductskn(MapUtils.getIntValue(productMap, "product_skn"));
|
|
|
// promotionMatchFactor.setBrandId(MapUtils.getIntValue(productMap, "brand_id"));
|
|
|
// promotionMatchFactor.setSmallSortId(MapUtils.getIntValue(productMap, "small_sort_id"));
|
|
|
// promotionMatchFactor.setMiddleSortId(MapUtils.getIntValue(productMap, "middle_sort_id"));
|
|
|
// promotionMatchFactor.setMaxSortId(MapUtils.getIntValue(productMap, "max_sort_id"));
|
|
|
// promotionMatchFactor.setIspromotion(MapUtils.getIntValue(productMap, "is_promotion"));
|
|
|
// promotionMatchFactor.setProductskn(MapUtils.getIntValue(productMap, "product_skn"));
|
|
|
promotionMatchFactor.setBrandId(MapUtils.getIntValue(productMap, "brandId"));
|
|
|
promotionMatchFactor.setSmallSortId(MapUtils.getIntValue(productMap, "smallSortId"));
|
|
|
promotionMatchFactor.setMiddleSortId(MapUtils.getIntValue(productMap, "middleSortId"));
|
|
|
promotionMatchFactor.setMaxSortId(MapUtils.getIntValue(productMap, "maxSortId"));
|
|
|
promotionMatchFactor.setIspromotion(MapUtils.getIntValue(productMap, "isPromotion"));
|
|
|
promotionMatchFactor.setProductskn(MapUtils.getIntValue(productMap, "productSkn"));
|
|
|
return promotionHelper.matchProduct(condItem, promotionMatchFactor);
|
|
|
}
|
|
|
} |
...
|
...
|
|