...
|
...
|
@@ -39,6 +39,7 @@ public class ProductController { |
|
|
|
|
|
private final Logger LOG = LoggerFactory.getLogger(ProductController.class);
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private ProductService productService;
|
|
|
|
...
|
...
|
@@ -279,6 +280,24 @@ public class ProductController { |
|
|
return new ApiResponse(200, "取消卖出成功!", Boolean.TRUE);
|
|
|
}
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.product.hideSellerAllSkup")
|
|
|
public ApiResponse hideSellerAllSkup(
|
|
|
@RequestParam(value = "uid", required = true) Integer uid) {
|
|
|
LOG.info("in method=ufo.product.hideSellerAllSkup uid={}", uid);
|
|
|
productService.changeSkupHideStatus(uid, 1);// status:1 隐藏商品
|
|
|
LOG.info("hideSellerAllSkup success uid = {}", uid);
|
|
|
return new ApiResponse(200, "隐藏用户商品成功!", Boolean.TRUE);
|
|
|
}
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.product.showSellerAllSkup")
|
|
|
public ApiResponse showSellerAllSkup(
|
|
|
@RequestParam(value = "uid", required = true) Integer uid) {
|
|
|
LOG.info("in method=ufo.product.showSellerAllSkup uid={}", uid);
|
|
|
productService.changeSkupHideStatus(uid, 0);// status:0 展示商品
|
|
|
LOG.info("showSellerAllSkup success uid = {}", uid);
|
|
|
return new ApiResponse(200, "隐藏用户商品成功!", Boolean.TRUE);
|
|
|
}
|
|
|
|
|
|
@Autowired
|
|
|
private ControllerCacheAop cacheAop;
|
|
|
private ExecutorService executors = Executors.newFixedThreadPool(1);
|
...
|
...
|
|