diff --git a/src/main/java/com/cm/news/controller/app/apis/newscomment/NewsCommentAppController.java b/src/main/java/com/cm/news/controller/app/apis/newscomment/NewsCommentAppController.java index 224641a..46a3fbb 100644 --- a/src/main/java/com/cm/news/controller/app/apis/newscomment/NewsCommentAppController.java +++ b/src/main/java/com/cm/news/controller/app/apis/newscomment/NewsCommentAppController.java @@ -23,7 +23,6 @@ import com.cm.news.pojo.vos.newscomment.NewsCommentVO; import com.cm.news.service.newscomment.INewsCommentService; import com.github.pagehelper.util.StringUtil; import io.swagger.annotations.*; -import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -31,7 +30,6 @@ import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import javax.servlet.http.HttpServletRequest; -import java.util.Arrays; import java.util.List; import java.util.Map; @@ -57,9 +55,7 @@ public class NewsCommentAppController extends AbstractController { @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 newsCommentService.countCountByNewsContentIds(newsContentIdList); + return newsCommentService.getCountbyNewsContentIds(newsContentIds); } private String getRemortIP() throws Exception { diff --git a/src/main/java/com/cm/news/controller/app/apis/newscontent/NewsContentAppController.java b/src/main/java/com/cm/news/controller/app/apis/newscontent/NewsContentAppController.java index 2c67e71..e4a06c2 100644 --- a/src/main/java/com/cm/news/controller/app/apis/newscontent/NewsContentAppController.java +++ b/src/main/java/com/cm/news/controller/app/apis/newscontent/NewsContentAppController.java @@ -117,6 +117,11 @@ public class NewsContentAppController extends AbstractController { @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "area1", value = "区域ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "area2", value = "区域ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "area3", value = "区域ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "area4", value = "区域ID", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "area5", value = "区域ID", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "newsDirectoriesId", value = "目录ID", paramType = "query", dataType = "String"), @ApiImplicitParam(name = "newsDirectoriesParentId", value = "目录父节点ID", paramType = "query", dataType = "String") }) 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 7c7370a..eb10503 100644 --- a/src/main/java/com/cm/news/service/newscontentlike/INewsContentLikeService.java +++ b/src/main/java/com/cm/news/service/newscontentlike/INewsContentLikeService.java @@ -7,7 +7,6 @@ import com.cm.common.pojo.ListPage; import com.cm.common.result.SuccessResult; import com.cm.common.result.SuccessResultData; import com.cm.common.result.SuccessResultList; -import com.cm.news.pojo.dtos.newscommentlike.NewsCommentLikeCountDTO; import com.cm.news.pojo.dtos.newscontentlike.NewsContentLikeCountDTO; import com.cm.news.pojo.dtos.newscontentlike.NewsContentLikeDTO; import com.cm.news.pojo.vos.newscontentlike.NewsContentLikeVO; @@ -159,12 +158,5 @@ public interface INewsContentLikeService { Integer getCountByNewsContentId(String newsContentId) throws SearchException; - /** - * 新闻点赞统计列表 - * - * @param newsContentIds - * @return - * @throws SearchException - */ - List countCountByNewsContentIds(List newsContentIds) throws SearchException; + List getCountbyNewsContentIds(String newsContentIds) throws SearchException; } \ No newline at end of file