Authored by wangnan9279

fix

... ... @@ -150,10 +150,7 @@ public class TblToYohoIndexBuilder extends IIndexBuilder {
this.tblSizeLogicService.build(tblProductSkuMap, productIndexBO, tblProduct, sizeMap);
// 特殊处理逻辑
specialDealLogicService.specialDealForProductIBO(productIndexBO);
// 状态不是有效的丢掉
if (productIndexBO.getStatus() != 0) {
productIndexBOList.add(productIndexBO);
}
productIndexBOList.add(productIndexBO);
}
return productIndexBOList;
} catch (Exception e) {
... ...
... ... @@ -40,6 +40,8 @@ public class CutdownPriceProductMqListener extends AbstractMqListener {
@Autowired
private ProductService productService;
@Autowired
@Override
public String getIndexName() {
return ISearchConstants.INDEX_NAME_CUTDOWN_PRICE_PRODUCT;
... ... @@ -52,8 +54,12 @@ public class CutdownPriceProductMqListener extends AbstractMqListener {
@Override
protected void deleteData(String id) throws Exception {
CutdownPriceProduct cutdownPriceProduct = cutdownPriceProductMapper.selectByPrimaryKey(Integer.valueOf(id));
cutdownPriceProductService.delete(Integer.valueOf(id));
indexService.deleteIndexData(this.getIndexName(), id);
if(cutdownPriceProduct!=null){
updateProductIndex(cutdownPriceProduct.getProductSkn());
}
}
@Override
... ...