...
|
...
|
@@ -2,7 +2,7 @@ package com.yoho.search.consumer.service.logicService.productIndex; |
|
|
|
|
|
import com.yoho.search.consumer.service.bo.ProductIndexBO;
|
|
|
import com.yoho.search.consumer.service.daoService.GoodsImagesService;
|
|
|
import com.yoho.search.consumer.service.logicService.ProductImageRelatedLogicService;
|
|
|
import com.yoho.search.consumer.service.logicService.GoodsRelatedImageLogicService;
|
|
|
import com.yoho.search.dal.model.GoodsImages;
|
|
|
import com.yoho.search.dal.model.ProductDefaultImage;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
...
|
...
|
@@ -23,12 +23,12 @@ public class ProductDefaultImageBuilder implements IndexFieldBuilder { |
|
|
@Autowired
|
|
|
private GoodsImagesService goodsImagesService;
|
|
|
@Autowired
|
|
|
private ProductImageRelatedLogicService productImageRelatedLogicService;
|
|
|
private GoodsRelatedImageLogicService goodsRelatedImageLogicService;
|
|
|
|
|
|
@Override
|
|
|
public void build(List<ProductIndexBO> productIndexBOs, List<Integer> ids, List<Integer> sknList) {
|
|
|
List<GoodsImages> goodsImages = goodsImagesService.selectListByProductIds(ids);
|
|
|
List<ProductDefaultImage> productDefaultImages = productImageRelatedLogicService.buildProductDefaultImage(goodsImages);
|
|
|
List<ProductDefaultImage> productDefaultImages = goodsRelatedImageLogicService.buildProductDefaultImage(goodsImages);
|
|
|
if (CollectionUtils.isEmpty(productDefaultImages)) {
|
|
|
return;
|
|
|
}
|
...
|
...
|
|