Browse Source

标签为空bug

dev
zxc 3 years ago
parent
commit
e25e93746b
  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

@ -1304,6 +1304,9 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
* @author zxc * @author zxc
*/ */
public void updateCacheCustomerTag(UpdateCustomerTagCacheDTO formDto) { public void updateCacheCustomerTag(UpdateCustomerTagCacheDTO formDto) {
if (null == formDto){
return;
}
List<UpdateTagUseCountsResultDTO> tagsInfo = formDto.getTagsInfo(); List<UpdateTagUseCountsResultDTO> tagsInfo = formDto.getTagsInfo();
String customerId = formDto.getCustomerId(); String customerId = formDto.getCustomerId();
//更新缓存标签使用数量 //更新缓存标签使用数量
@ -1343,7 +1346,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit
} }
public List<UpdateGridTagCacheDTO> updateGridTagV2(UpdateCustomerTagCacheDTO formDto,String customerId,List<String> gridIds,String userId){ public List<UpdateGridTagCacheDTO> updateGridTagV2(UpdateCustomerTagCacheDTO formDto,String customerId,List<String> gridIds,String userId){
if (CollectionUtils.isEmpty(gridIds)){ if ( null == formDto || CollectionUtils.isEmpty(formDto.getTagsInfo()) || CollectionUtils.isEmpty(gridIds)){
return new ArrayList<>(); return new ArrayList<>();
} }
List<UpdateTagUseCountsResultDTO> tagsInfo = formDto.getTagsInfo(); List<UpdateTagUseCountsResultDTO> tagsInfo = formDto.getTagsInfo();

Loading…
Cancel
Save