...
|
...
|
@@ -435,7 +435,23 @@ public class ProductController { |
|
|
cacheAop.clearCache(
|
|
|
ProductController.class.getMethod("queryStorageSuggestPrice", new Class[]{Collection.class}),
|
|
|
new Object[]{storageId});
|
|
|
|
|
|
if (sp.getPreSaleFlag() != null && (sp.getPreSaleFlag() == 5 || sp.getPreSaleFlag() == 6)) {
|
|
|
LOG.info("clearCache querySecondHandProductData skup = {}, ", skup);
|
|
|
cacheAop.clearCache(
|
|
|
ProductController.class.getMethod("querySecondHandProductData", new Class[]{Integer.class}),
|
|
|
new Object[]{skup});
|
|
|
LOG.info("clearCache querySecondHandProductListCount skup = {}, ", skup);
|
|
|
cacheAop.clearCache(
|
|
|
ProductController.class.getMethod("querySecondHandProductListCount", new Class[]{Integer.class}),
|
|
|
new Object[]{storageId});
|
|
|
LOG.info("clearCache querySecondHandProductListFilter skup = {}, ", skup);
|
|
|
cacheAop.clearCache(
|
|
|
ProductController.class.getMethod("querySecondHandProductListFilter", new Class[]{Integer.class}),
|
|
|
new Object[]{storageId});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
LOG.error("删除商品缓存失败!", e);
|
|
|
}
|
...
|
...
|
@@ -485,6 +501,24 @@ public class ProductController { |
|
|
new Object[]{storageId});
|
|
|
}
|
|
|
}
|
|
|
for(StoragePrice sp : spList) {
|
|
|
Integer skup = sp.getSkup();
|
|
|
Integer storageId = sp.getStorageId();
|
|
|
if (sp.getPreSaleFlag() != null && (sp.getPreSaleFlag() == 5 || sp.getPreSaleFlag() == 6)) {
|
|
|
LOG.info("clearCache querySecondHandProductData skup = {}, ", skup);
|
|
|
cacheAop.clearCache(
|
|
|
ProductController.class.getMethod("querySecondHandProductData", new Class[]{Integer.class}),
|
|
|
new Object[]{skup});
|
|
|
LOG.info("clearCache querySecondHandProductListCount skup = {}, ", skup);
|
|
|
cacheAop.clearCache(
|
|
|
ProductController.class.getMethod("querySecondHandProductListCount", new Class[]{Integer.class}),
|
|
|
new Object[]{storageId});
|
|
|
LOG.info("clearCache querySecondHandProductListFilter skup = {}, ", skup);
|
|
|
cacheAop.clearCache(
|
|
|
ProductController.class.getMethod("querySecondHandProductListFilter", new Class[]{Integer.class}),
|
|
|
new Object[]{storageId});
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
LOG.error("删除商品缓存失败!", e);
|
|
|
}
|
...
|
...
|
|