diff --git a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java index 9c158db39b..9d16988665 100644 --- a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java +++ b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java @@ -415,7 +415,7 @@ public class ArticleServiceImpl extends BaseServiceImpl { if (gridIdList.contains(grid.getGridId())) { - String agencyGridName = articleGridResultDTO.getAgencyName().concat("_").concat(grid.getGridName()); + String agencyGridName = articleGridResultDTO.getAgencyName().concat("-").concat(grid.getGridName()); agencyGridNameList.add(agencyGridName); DraftPublishRangeEntity draftPublishRangeEntity = new DraftPublishRangeEntity(); draftPublishRangeEntity.setCustomerId(tokenDto.getCustomerId()); @@ -1007,6 +1007,9 @@ public class ArticleServiceImpl extends BaseServiceImpl updateGridTagCacheDTOS = this.updateGridTag(tokenDto, draftId, updateCustomerTagCacheDTO); this.addArticleTags(updateCustomerTagCacheDTO, draftId, tokenDto); @@ -1091,16 +1094,21 @@ public class ArticleServiceImpl extends BaseServiceImpl tagsList = Arrays.asList(tags.split("\\|")); - List tagsInfo = new ArrayList<>(); - //政府端的 标签使用次数 DB - tagsList.forEach(tag -> { - UpdateTagUseCountsResultDTO updateTagUseCount = tagCustomerService.checkTagInfo(tag, customerId, userId); - tagsInfo.add(updateTagUseCount); - }); - UpdateCustomerTagCacheDTO result = new UpdateCustomerTagCacheDTO(); - result.setCustomerId(customerId); - result.setTagsInfo(tagsInfo); + UpdateCustomerTagCacheDTO result = null; + if (StringUtils.isNotBlank(tags)){ + result = new UpdateCustomerTagCacheDTO(); + List tagsList = Arrays.asList(tags.split("\\|")); + List tagsInfo = new ArrayList<>(); + //政府端的 标签使用次数 DB + tagsList.forEach(tag -> { + UpdateTagUseCountsResultDTO updateTagUseCount = tagCustomerService.checkTagInfo(tag, customerId, userId); + tagsInfo.add(updateTagUseCount); + }); + result.setCustomerId(customerId); + result.setTagsInfo(tagsInfo); + } + + return result; }