...
|
...
|
@@ -1261,11 +1261,11 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
int page = req.getPage();
|
|
|
int size = req.getSize();
|
|
|
logger.info("begin grassArticleDao.selectDraftArticleCount");
|
|
|
int total = grassArticleDao.selectDraftArticleCount(articleId, authorUids, isPublished, System.currentTimeMillis(), startTimeInt, endTimeInt, isExclude, userType,sort,req.getDispatchChannel());
|
|
|
int total = grassArticleDao.selectDraftArticleCount(articleId, authorUids, isPublished, System.currentTimeMillis(), startTimeInt, endTimeInt, isExclude, userType,sort,req.getChannelId());
|
|
|
logger.info("end grassArticleDao.selectDraftArticleCount: total is {}", total);
|
|
|
int offset = (page - 1) * size;
|
|
|
logger.info("begin grassArticleDao.selectDraftArticleList,offset is {}, limit is {} ", offset, size);
|
|
|
List<GrassArticle> articleList = grassArticleDao.selectDraftArticleList(articleId, authorUids, isPublished, System.currentTimeMillis(), startTimeInt, endTimeInt, offset, size, isExclude, userType,sort,req.getDispatchChannel());
|
|
|
List<GrassArticle> articleList = grassArticleDao.selectDraftArticleList(articleId, authorUids, isPublished, System.currentTimeMillis(), startTimeInt, endTimeInt, offset, size, isExclude, userType,sort,req.getChannelId());
|
|
|
logger.info("end grassArticleDao.selectDraftArticleCount: offset is {}, limit is {} ", offset, size);
|
|
|
PageResponseVO rsp = new PageResponseVO();
|
|
|
rsp.setList(buildArticleDetail(articleList, true));
|
...
|
...
|
@@ -2747,4 +2747,14 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
}
|
|
|
return rspBoList;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void backToDraft(GrassArticleReq req) {
|
|
|
logger.debug("enter backToDraft articleId is {}" , req.getArticleId());
|
|
|
GrassArticle article = new GrassArticle();
|
|
|
article.setId(req.getArticleId());
|
|
|
article.setAuthStatus(9);
|
|
|
article.setUpdateTime(System.currentTimeMillis());
|
|
|
grassArticleDao.updateByPrimaryKeySelective(article);
|
|
|
}
|
|
|
} |
...
|
...
|
|