|
|
@ -1804,7 +1804,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
|
if(StringUtils.isNotBlank(imgUrl)){ |
|
|
|
//如果没有封面图片的话,更新
|
|
|
|
LambdaQueryWrapper<ArticleCoverEntity> queryWrapper=new LambdaQueryWrapper(); |
|
|
|
queryWrapper.eq(ArticleCoverEntity::getArticleId,articleEntity); |
|
|
|
queryWrapper.eq(ArticleCoverEntity::getArticleId,articleId); |
|
|
|
if (articleCoverDao.selectCount(queryWrapper) == 0) { |
|
|
|
ArticleCoverEntity articleCoverEntity=new ArticleCoverEntity(); |
|
|
|
articleCoverEntity.setCustomerId(articleEntity.getCustomerId()); |
|
|
@ -1852,6 +1852,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
|
articleEntity.setOrgIdPath(StringUtils.isBlank(agencyInfo.getPids()) || agencyInfo.getPids().equals(NumConstant.ZERO_STR) ? agencyInfo.getId() : agencyInfo.getPids().concat(":").concat(agencyInfo.getId())); |
|
|
|
articleEntity.setRichTextFlag(NumConstant.ONE_STR); |
|
|
|
articleEntity.setIsTop(formDTO.getIsTop()); |
|
|
|
articleEntity.setTitle(formDTO.getTitle()); |
|
|
|
baseDao.updateById(articleEntity); |
|
|
|
// 2.内容
|
|
|
|
ArticleContentEntity articleContent = articleContentDao.selectByArticleId(formDTO.getArticleId()); |
|
|
|