...
|
...
|
@@ -241,10 +241,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ |
|
|
}
|
|
|
int page = req.getPage();
|
|
|
int size = req.getSize();
|
|
|
int total = grassArticleDao.getArticleCount(articleId, source, authStatus,authorUid,startTimeInt, endTimeInt);
|
|
|
int total = grassArticleDao.selectArticleCount(articleId, source, authStatus,authorUid,startTimeInt, endTimeInt);
|
|
|
logger.info("getArticleList: grassArticleDao.getArticleCount: articleId is {}, source is {}, total is {}", articleId, source, total);
|
|
|
int offset = (page - 1) * size;
|
|
|
List<GrassArticle> articleList = grassArticleDao.getArticleList(articleId, source, authStatus,authorUid,startTimeInt, endTimeInt,offset, size);
|
|
|
List<GrassArticle> articleList = grassArticleDao.selectArticleList(articleId, source, authStatus,authorUid,startTimeInt, endTimeInt,offset, size);
|
|
|
PageResponseVO rsp = new PageResponseVO();
|
|
|
rsp.setList(buildArticleDetail(articleList));
|
|
|
rsp.setTotal(total);
|
...
|
...
|
|