...
|
...
|
@@ -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
|
...
|
...
|
|