...
|
...
|
@@ -206,6 +206,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
article.setSort(sort);
|
|
|
article.setCopyright(req.getCopyright());
|
|
|
article.setArticleTitle(req.getTitle());
|
|
|
article.setFlowType(req.getFlowType());
|
|
|
article.setDispatchChannel(req.getDispatchChannel());
|
|
|
try {
|
|
|
grassArticleDao.insertArticleSeletive(article);
|
|
|
logger.info("insert grass article success, uid is {}, ariticle id is {}", article.getAuthorUid(), article.getId());
|
...
|
...
|
@@ -495,13 +497,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, auditSort,isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods());
|
|
|
recommendSort, auditSort,isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods(),req.getDispatchChannel());
|
|
|
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,auditSort, isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods());
|
|
|
offset, size, recommendSort,auditSort, isExclude, userType, sort, currentTime,req.getMarkFlag(),req.getMarkFindgoods(),req.getDispatchChannel());
|
|
|
logger.info("end getArticleList: grassArticleDao.selectArticleList , offset is {}, limit is {}", offset, size);
|
|
|
|
|
|
rsp.setList(buildArticleDetail(articleList, false));
|
...
|
...
|
@@ -644,6 +646,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
grassArticle.setSort(sort);
|
|
|
grassArticle.setCopyright(req.getCopyright());
|
|
|
grassArticle.setArticleTitle(req.getTitle());
|
|
|
grassArticle.setDispatchChannel(req.getDispatchChannel());
|
|
|
grassArticleDao.updateByPrimaryKeySelective(grassArticle);
|
|
|
|
|
|
//文章内容
|
...
|
...
|
@@ -1148,11 +1151,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);
|
|
|
int total = grassArticleDao.selectDraftArticleCount(articleId, authorUids, isPublished, System.currentTimeMillis(), startTimeInt, endTimeInt, isExclude, userType,sort,req.getDispatchChannel());
|
|
|
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);
|
|
|
List<GrassArticle> articleList = grassArticleDao.selectDraftArticleList(articleId, authorUids, isPublished, System.currentTimeMillis(), startTimeInt, endTimeInt, offset, size, isExclude, userType,sort,req.getDispatchChannel());
|
|
|
logger.info("end grassArticleDao.selectDraftArticleCount: offset is {}, limit is {} ", offset, size);
|
|
|
PageResponseVO rsp = new PageResponseVO();
|
|
|
rsp.setList(buildArticleDetail(articleList, true));
|
...
|
...
|
@@ -1221,6 +1224,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
grassArticle.setArticleSubtitle(req.getSubtitle());
|
|
|
grassArticle.setSort(sort);
|
|
|
grassArticle.setCopyright(req.getCopyright());
|
|
|
grassArticle.setDispatchChannel(req.getDispatchChannel());
|
|
|
if (type == 3) {
|
|
|
time = Long.valueOf(publishTime) + new Random().nextInt(999);
|
|
|
grassArticle.setIsRecommend(1);
|
...
|
...
|
@@ -1395,6 +1399,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
article.setSort(sort);
|
|
|
article.setCopyright(req.getCopyright());
|
|
|
article.setArticleTitle(req.getTitle());
|
|
|
article.setFlowType(req.getFlowType());
|
|
|
article.setDispatchChannel(req.getDispatchChannel());
|
|
|
try {
|
|
|
grassArticleDao.insertArticleSeletive(article);
|
|
|
logger.info("insert grass article success, uid is {}, ariticle id is {}", article.getAuthorUid(), article.getId());
|
...
|
...
|
@@ -1811,6 +1817,8 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
rspBo.setMarkFlag(article.getMarkFlag());
|
|
|
//是否打标到发现好货 0-否 1-是
|
|
|
rspBo.setMarkFindgoods(article.getMarkFindgoods());
|
|
|
//文章分发渠道
|
|
|
rspBo.setDispatchChannel(article.getDispatchChannel());
|
|
|
rspBoList.add(rspBo);
|
|
|
});
|
|
|
return rspBoList;
|
...
|
...
|
|