...
|
...
|
@@ -38,6 +38,7 @@ import com.yohoufo.product.service.ProductService; |
|
|
public class ProductController {
|
|
|
|
|
|
private final Logger LOG = LoggerFactory.getLogger(ProductController.class);
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private ProductService productService;
|
...
|
...
|
@@ -278,6 +279,24 @@ public class ProductController { |
|
|
clearProductCache(skup);
|
|
|
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;
|
...
|
...
|
|