This commit is contained in:
wangzhijiang
2023-06-08 13:57:56 +08:00
parent 11f8c1755d
commit 71b3604e3e
@@ -41,6 +41,7 @@ import com.jero.modules.system.service.ISysDictService;
import com.jero.modules.system.service.ISysUserService;
import com.jero.modules.system.util.StringUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.shiro.SecurityUtils;
import org.jetbrains.annotations.NotNull;
import org.jsoup.Jsoup;
@@ -511,7 +512,9 @@ public class ProblemKnowledgeBaseEOServiceImpl extends ServiceImpl<ProblemKnowle
public ProblemKnowledgeBaseEO queryById(String id,String cut) {
ProblemKnowledgeBaseEO problemKnowledgeBaseEO = getById(id);
List<ProblemKnowledgeBaseEO> problemKnowledgeBaseEOList = new ArrayList<>();
problemKnowledgeBaseEOList.add(problemKnowledgeBaseEO);
if (ObjectUtils.isNotEmpty(problemKnowledgeBaseEO)) {
problemKnowledgeBaseEOList.add(problemKnowledgeBaseEO);
}
this.disposeData(problemKnowledgeBaseEOList,cut);
if (CollectionUtils.isNotEmpty(problemKnowledgeBaseEOList)) {
problemKnowledgeBaseEO = problemKnowledgeBaseEOList.get(0);