...
|
...
|
@@ -455,6 +455,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
Long endTimeInt = null;
|
|
|
Integer authorUid = req.getAuthorUid();//uid
|
|
|
String recommendSort = StringUtils.isEmpty(req.getRecommendSort()) || "0".equals(req.getRecommendSort()) ? null : req.getRecommendSort();
|
|
|
String auditSort = StringUtils.isEmpty(req.getAuditSort()) || "0".equals(req.getAuditSort()) ? null : req.getAuditSort();
|
|
|
PageResponseVO rsp = new PageResponseVO();
|
|
|
rsp.setList(Lists.newArrayList());
|
|
|
rsp.setTotal(0);
|
...
|
...
|
@@ -495,13 +496,13 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
int size = req.getSize();
|
|
|
logger.info("start getArticleList: grassArticleDao.getArticleCount ");
|
|
|
int total = grassArticleDao.selectArticleCount(articleId, source, authStatus, authorUids, isRecommend, isTop, startTimeInt, endTimeInt,
|
|
|
recommendSort, isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods());
|
|
|
recommendSort, auditSort,isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods());
|
|
|
logger.info("end getArticleList: grassArticleDao.getArticleCount, total is {}", total);
|
|
|
int offset = (page - 1) * size;
|
|
|
|
|
|
logger.info("start getArticleList: grassArticleDao.selectArticleList , offset is {}, limit is {}", offset, size);
|
|
|
List<GrassArticle> articleList = grassArticleDao.selectArticleList(articleId, source, authStatus, authorUids, isRecommend, isTop, startTimeInt, endTimeInt,
|
|
|
offset, size, recommendSort, isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods());
|
|
|
offset, size, recommendSort,auditSort, isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods());
|
|
|
logger.info("end getArticleList: grassArticleDao.selectArticleList , offset is {}, limit is {}", offset, size);
|
|
|
|
|
|
rsp.setList(buildArticleDetail(articleList, false));
|
...
|
...
|
|