diff --git a/src/main/java/com/cm/news/controller/app/apis/newscontentlike/NewsContentLikeAppController.java b/src/main/java/com/cm/news/controller/app/apis/newscontentlike/NewsContentLikeAppController.java index e8cd8c0..4c96ae0 100644 --- a/src/main/java/com/cm/news/controller/app/apis/newscontentlike/NewsContentLikeAppController.java +++ b/src/main/java/com/cm/news/controller/app/apis/newscontentlike/NewsContentLikeAppController.java @@ -38,17 +38,17 @@ public class NewsContentLikeAppController extends AbstractController { @Autowired private INewsContentLikeService newsContentLikeService; - @ApiOperation(value = "新闻的点赞数", notes = "新闻的点赞数接口") - @ApiImplicitParams({ - @ApiImplicitParam(name = "newsContentIds", value = "新闻ID集,多个用_隔开", paramType = "query") - }) - @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) - @GetMapping("getcountbynewscontentids" + ISystemConstant.APP_RELEASE_SUFFIX + "/{newsContentIds}") - public List getCountbyNewsContentIds(@PathVariable("newsContentIds") String newsContentIds) throws SearchException { - String[] newsContentIdArr = newsContentIds.split("_"); - List newsContentIdList = Arrays.asList(newsContentIdArr); - return newsContentLikeService.countCountByNewsContentIds(newsContentIdList); - } +// @ApiOperation(value = "新闻的点赞数", notes = "新闻的点赞数接口") +// @ApiImplicitParams({ +// @ApiImplicitParam(name = "newsContentIds", value = "新闻ID集,多个用_隔开", paramType = "query") +// }) +// @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) +// @GetMapping("getcountbynewscontentids" + ISystemConstant.APP_RELEASE_SUFFIX + "/{newsContentIds}") +// public List getCountbyNewsContentIds(@PathVariable("newsContentIds") String newsContentIds) throws SearchException { +// String[] newsContentIdArr = newsContentIds.split("_"); +// List newsContentIdList = Arrays.asList(newsContentIdArr); +// return newsContentLikeService.countCountByNewsContentIds(newsContentIdList); +// } @ApiOperation(value = "新增新闻点赞", notes = "新增新闻点赞接口") @ApiImplicitParams({ diff --git a/src/main/java/com/cm/news/service/newscontentlike/INewsContentLikeService.java b/src/main/java/com/cm/news/service/newscontentlike/INewsContentLikeService.java index eb10503..847f06a 100644 --- a/src/main/java/com/cm/news/service/newscontentlike/INewsContentLikeService.java +++ b/src/main/java/com/cm/news/service/newscontentlike/INewsContentLikeService.java @@ -158,5 +158,5 @@ public interface INewsContentLikeService { Integer getCountByNewsContentId(String newsContentId) throws SearchException; - List getCountbyNewsContentIds(String newsContentIds) throws SearchException; + // List getCountbyNewsContentIds(String newsContentIds) throws SearchException; } \ No newline at end of file diff --git a/src/main/java/com/cm/news/service/newscontentlike/impl/NewsContentLikeServiceImpl.java b/src/main/java/com/cm/news/service/newscontentlike/impl/NewsContentLikeServiceImpl.java index ba46750..8c524b9 100644 --- a/src/main/java/com/cm/news/service/newscontentlike/impl/NewsContentLikeServiceImpl.java +++ b/src/main/java/com/cm/news/service/newscontentlike/impl/NewsContentLikeServiceImpl.java @@ -210,10 +210,10 @@ public class NewsContentLikeServiceImpl extends BaseService implements INewsCont return newsContentLikeDao.getCountByNewsContentId(params); } - @Override - public List countCountByNewsContentIds(List newsContentIds) throws SearchException { - Map params = new HashMap(); - params.put("newsContentIds", newsContentIds); - return newsContentLikeDao.listCountByNewsContentIds(params); - } +// @Override +// public List countCountByNewsContentIds(List newsContentIds) throws SearchException { +// Map params = new HashMap(); +// params.put("newsContentIds", newsContentIds); +// return newsContentLikeDao.listCountByNewsContentIds(params); +// } } \ No newline at end of file