...
|
...
|
@@ -11,7 +11,10 @@ import com.yoho.search.consumer.common.CostStatistics; |
|
|
import com.yoho.search.consumer.common.PerformanceMonitor;
|
|
|
import com.yoho.search.consumer.index.common.IYohoIndexService;
|
|
|
import com.yoho.search.consumer.index.increment.bulks.StorageSkuIndexToolsService;
|
|
|
import com.yoho.search.consumer.service.base.*;
|
|
|
import com.yoho.search.consumer.service.base.ProductIndexService;
|
|
|
import com.yoho.search.consumer.service.base.ProductPoolDetailService;
|
|
|
import com.yoho.search.consumer.service.base.ProductPriceService;
|
|
|
import com.yoho.search.consumer.service.base.ProductService;
|
|
|
import com.yoho.search.consumer.service.bo.ProductIBO;
|
|
|
import com.yoho.search.consumer.service.bo.StorageSkuBO;
|
|
|
import com.yoho.search.consumer.service.logic.ProductIndexLogicService;
|
...
|
...
|
@@ -20,6 +23,7 @@ import com.yoho.search.consumer.service.logic.StorageSkuLogicService; |
|
|
import com.yoho.search.core.es.utils.IgnoreSomeException;
|
|
|
import com.yoho.search.dal.model.Product;
|
|
|
import com.yoho.search.dal.model.ProductPrice;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
...
|
...
|
@@ -116,7 +120,7 @@ public class ProductMqListener extends AbstractMqListener implements ChannelAwar |
|
|
List<Integer> ids = new ArrayList<>();
|
|
|
ids.add(productId);
|
|
|
List<ProductIBO> productIBOs = productIndexLogicService.getProductIs(ids);
|
|
|
if (productIBOs == null) {
|
|
|
if (CollectionUtils.isEmpty(productIBOs)) {
|
|
|
return;
|
|
|
}
|
|
|
ProductIBO productIBO = productIBOs.get(0);
|
...
|
...
|
|