From e0c873cca02cdb6a0022bf8f924030dc01e47e51 Mon Sep 17 00:00:00 2001 From: WenG <450292408@qq.com> Date: Tue, 5 Jan 2021 14:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NewsContentLikeAppController.java | 22 +++++++++---------- .../INewsContentLikeService.java | 2 +- .../impl/NewsContentLikeServiceImpl.java | 12 +++++----- 3 files changed, 18 insertions(+), 18 deletions(-) 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