From 2836f1694816a18ba2b1d29165275471f60f999d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Fri, 17 Mar 2023 17:35:35 +0800 Subject: [PATCH] test --- .../java/com/ningdatech/pmapi/expert/helper/ExpertManageHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/expert/helper/ExpertManageHelper.java b/pmapi/src/main/java/com/ningdatech/pmapi/expert/helper/ExpertManageHelper.java index 5e000b0..05d9b69 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/expert/helper/ExpertManageHelper.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/expert/helper/ExpertManageHelper.java @@ -1,5 +1,6 @@ package com.ningdatech.pmapi.expert.helper; +import cn.hutool.core.collection.CollUtil; import com.ningdatech.basic.exception.BizException; import com.ningdatech.pmapi.expert.model.*; import com.ningdatech.pmapi.meta.helper.DictionaryCache; @@ -64,7 +65,9 @@ public class ExpertManageHelper { tagFieldInfoList.addAll(goodAt); tagFieldInfoList.addAll(technicalExpertise); tagFieldInfoList.addAll(industrySector); - tagFieldInfoList.addAll(expertSource); + if(CollUtil.isNotEmpty(expertSource)){ + tagFieldInfoList.addAll(expertSource); + } for (TagFieldInfo tagFieldInfo : tagFieldInfoList) { String tagCode = tagFieldInfo.getTagCode(); TagDTO tagCodeDTO = tagCache.getByTagCode(tagCode);