Browse Source

标签为空bug

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

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

@ -1413,10 +1413,11 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
public void addArticleTagsV2(UpdateCustomerTagCacheDTO formDto,String customerId,String articleId){ public void addArticleTagsV2(UpdateCustomerTagCacheDTO formDto,String customerId,String articleId){
List<ArticleTagsEntity> articleTags = new ArrayList<>(); List<ArticleTagsEntity> articleTags = new ArrayList<>();
List<UpdateTagUseCountsResultDTO> tagsInfo = formDto.getTagsInfo();
if (CollectionUtils.isEmpty(tagsInfo)){ if (CollectionUtils.isEmpty(formDto.getTagsInfo())){
return; return;
} }
List<UpdateTagUseCountsResultDTO> tagsInfo = formDto.getTagsInfo();
tagsInfo.forEach(resultDTO -> { tagsInfo.forEach(resultDTO -> {
ArticleTagsEntity e = ConvertUtils.sourceToTarget(resultDTO, ArticleTagsEntity.class); ArticleTagsEntity e = ConvertUtils.sourceToTarget(resultDTO, ArticleTagsEntity.class);
e.setCustomerId(customerId); e.setCustomerId(customerId);

Loading…
Cancel
Save