...
|
...
|
@@ -389,14 +389,23 @@ public class ProductController { |
|
|
|
|
|
@RequestMapping(params = "method=ufo.product.showSellerSkup")
|
|
|
public ApiResponse showSellerSkup(
|
|
|
@RequestParam(value = "uid", required = true) Integer skup) {
|
|
|
LOG.info("in method=ufo.product.showSellerSkup uid={}", skup);
|
|
|
@RequestParam(value = "skup", required = true) Integer skup) {
|
|
|
LOG.info("in method=ufo.product.showSellerSkup skup={}", skup);
|
|
|
productService.changeOneSkupHideStatus(skup, 0);// status:0 展示商品
|
|
|
clearProductCache(skup);
|
|
|
LOG.info("showSellerSkup success skup = {}", skup);
|
|
|
return new ApiResponse(200, "隐藏用户商品成功!", Boolean.TRUE);
|
|
|
}
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.product.clearCache")
|
|
|
public ApiResponse clearProductCaches(
|
|
|
@RequestParam(value = "skup", required = true) Integer skup) {
|
|
|
LOG.info("in method=ufo.product.clearCache skup={}", skup);
|
|
|
clearProductCache(skup);
|
|
|
LOG.info("clearProductCaches success skup = {}", skup);
|
|
|
return new ApiResponse(200, "缓存清除成功!", Boolean.TRUE);
|
|
|
}
|
|
|
|
|
|
@Autowired
|
|
|
private ControllerCacheAop cacheAop;
|
|
|
private ExecutorService executors = Executors.newFixedThreadPool(1);
|
...
|
...
|
|