|
@@ -40,6 +40,8 @@ public class CutdownPriceProductMqListener extends AbstractMqListener { |
|
@@ -40,6 +40,8 @@ public class CutdownPriceProductMqListener extends AbstractMqListener { |
40
|
@Autowired
|
40
|
@Autowired
|
41
|
private ProductService productService;
|
41
|
private ProductService productService;
|
42
|
|
42
|
|
|
|
43
|
+ @Autowired
|
|
|
44
|
+
|
43
|
@Override
|
45
|
@Override
|
44
|
public String getIndexName() {
|
46
|
public String getIndexName() {
|
45
|
return ISearchConstants.INDEX_NAME_CUTDOWN_PRICE_PRODUCT;
|
47
|
return ISearchConstants.INDEX_NAME_CUTDOWN_PRICE_PRODUCT;
|
|
@@ -52,8 +54,12 @@ public class CutdownPriceProductMqListener extends AbstractMqListener { |
|
@@ -52,8 +54,12 @@ public class CutdownPriceProductMqListener extends AbstractMqListener { |
52
|
|
54
|
|
53
|
@Override
|
55
|
@Override
|
54
|
protected void deleteData(String id) throws Exception {
|
56
|
protected void deleteData(String id) throws Exception {
|
|
|
57
|
+ CutdownPriceProduct cutdownPriceProduct = cutdownPriceProductMapper.selectByPrimaryKey(Integer.valueOf(id));
|
55
|
cutdownPriceProductService.delete(Integer.valueOf(id));
|
58
|
cutdownPriceProductService.delete(Integer.valueOf(id));
|
56
|
indexService.deleteIndexData(this.getIndexName(), id);
|
59
|
indexService.deleteIndexData(this.getIndexName(), id);
|
|
|
60
|
+ if(cutdownPriceProduct!=null){
|
|
|
61
|
+ updateProductIndex(cutdownPriceProduct.getProductSkn());
|
|
|
62
|
+ }
|
57
|
}
|
63
|
}
|
58
|
|
64
|
|
59
|
@Override
|
65
|
@Override
|