Authored by chenly5

草稿箱编辑增加分发渠道

... ... @@ -1322,6 +1322,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
}
}
if (StringUtils.isNotEmpty(req.getChannelIds())) {
channels = Arrays.stream(req.getChannelIds().split(",")).map(Integer::valueOf).collect(Collectors.toList());
}
//修改文章主体内容
long time = System.currentTimeMillis();
Integer sort = Optional.ofNullable(req.getSort()).orElse(1);
... ... @@ -1519,6 +1523,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
}
}
if (StringUtils.isNotEmpty(req.getChannelIds())) {
channels = Arrays.stream(req.getChannelIds().split(",")).map(Integer::valueOf).collect(Collectors.toList());
}
Integer sort = Optional.ofNullable(req.getSort()).orElse(1);
GrassArticle article = new GrassArticle();
article.setAuthorUid(req.getAuthorUid());
... ... @@ -1555,6 +1563,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
throw new PlatformException("article content too long", 409);
}
try {
if (CollectionUtils.isNotEmpty(req.getProducts())) {
int orderby = 0;
... ...