|
@ -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); |
|
|