Browse Source

标签为空bug

dev
zxc 3 years ago
parent
commit
e956c2b708
  1. 4
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java

4
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java

@ -1414,7 +1414,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
public void addArticleTagsV2(UpdateCustomerTagCacheDTO formDto,String customerId,String articleId){
List<ArticleTagsEntity> articleTags = new ArrayList<>();
if (CollectionUtils.isEmpty(formDto.getTagsInfo())){
if (null == formDto || CollectionUtils.isEmpty(formDto.getTagsInfo())){
return;
}
List<UpdateTagUseCountsResultDTO> tagsInfo = formDto.getTagsInfo();
@ -1571,7 +1571,9 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
}
// 5.文章标签
UpdateCustomerTagCacheDTO updateCustomerTagCacheDTO = updateCustomerTagV2(formDTO.getUserId(), formDTO.getCustomerId(), StringUtils.isBlank(article.getTags()) ? "" : article.getTags());
if (null != updateCustomerTagCacheDTO){
addArticleTagsV2(updateCustomerTagCacheDTO,customerId,article.getId());
}
// 6.更新网格tag
List<UpdateGridTagCacheDTO> updateGridTagCacheDTOS = updateGridTagV2(updateCustomerTagCacheDTO, customerId, formDTO.getGridIdList(), formDTO.getUserId());
// 7.文章封面

Loading…
Cancel
Save