崔宝铖提交
This commit is contained in:
parent
14c5a50b4d
commit
402198858c
@ -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<NewsCommentCountDTO> getCountbyNewsContentIds(@PathVariable("newsContentIds") String newsContentIds) throws SearchException {
|
||||
String[] newsContentIdArr = newsContentIds.split("_");
|
||||
List<String> newsContentIdList = Arrays.asList(newsContentIdArr);
|
||||
return newsCommentService.countCountByNewsContentIds(newsContentIdList);
|
||||
return newsCommentService.getCountbyNewsContentIds(newsContentIds);
|
||||
}
|
||||
|
||||
private String getRemortIP() throws Exception {
|
||||
|
@ -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")
|
||||
})
|
||||
|
@ -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<NewsContentLikeCountDTO> countCountByNewsContentIds(List<String> newsContentIds) throws SearchException;
|
||||
List<NewsContentLikeCountDTO> getCountbyNewsContentIds(String newsContentIds) throws SearchException;
|
||||
}
|
Loading…
Reference in New Issue
Block a user