Authored by 张帅

修改 放开跳转类型的限制

... ... @@ -293,7 +293,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
//构建分发渠道
List<GrassArticleChannel> grassArticleChannels = buildArticleChannels(article.getId(), channelIds);
try {
if (CollectionUtils.isNotEmpty(grassArticleChannels) && sort != 3) {
if (CollectionUtils.isNotEmpty(grassArticleChannels)) {
grassArticleChannelDao.insertArticleChannels(grassArticleChannels);
}
} catch (Exception e) {
... ... @@ -802,7 +802,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
grassArticleChannelDao.deleteByArticleId(articleId);
List<GrassArticleChannel> grassArticleChannels = buildArticleChannels(articleId, channels);
try {
if (CollectionUtils.isNotEmpty(grassArticleChannels) && 3 != sort) {
if (CollectionUtils.isNotEmpty(grassArticleChannels)) {
grassArticleChannelDao.insertArticleChannels(grassArticleChannels);
}
} catch (Exception e) {
... ... @@ -1413,7 +1413,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
grassArticleChannelDao.deleteByArticleId(articleId);
List<GrassArticleChannel> grassArticleChannels = buildArticleChannels(articleId, channels);
try {
if (CollectionUtils.isNotEmpty(grassArticleChannels) && 3 != sort) {
if (CollectionUtils.isNotEmpty(grassArticleChannels)) {
if (type == 3) {
for (GrassArticleChannel channel : grassArticleChannels) {
channel.setCreateTime(time);
... ... @@ -1608,7 +1608,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
//构建channels 数据
List<GrassArticleChannel> grassArticleChannels = buildArticleChannels(article.getId(), channels);
try {
if (CollectionUtils.isNotEmpty(grassArticleChannels) && 3 != sort) {
if (CollectionUtils.isNotEmpty(grassArticleChannels)) {
for (GrassArticleChannel channel : grassArticleChannels) {
channel.setCreateTime(time);
}
... ...