diff --git a/src/main/java/com/supervision/police/service/impl/ChatServiceImpl.java b/src/main/java/com/supervision/police/service/impl/ChatServiceImpl.java index a613c1d..69c28ef 100644 --- a/src/main/java/com/supervision/police/service/impl/ChatServiceImpl.java +++ b/src/main/java/com/supervision/police/service/impl/ChatServiceImpl.java @@ -292,7 +292,7 @@ public class ChatServiceImpl implements ChatService { answerMap.put("indexType", modelIndex.getIndexType()); answerMap.put("result", Boolean.parseBoolean(indexDetail.getIndexResult()) ? "符合" : "不符合"); List> qaSplitList = new ArrayList<>(); - if (!indexDetail.getChildren().isEmpty()) { + if (CollUtil.isNotEmpty(indexDetail.getChildren())) { indexDetail.getChildren().forEach(atomicIndexDTO -> { if (!atomicIndexDTO.getRecordSegmentationList().isEmpty()) { atomicIndexDTO.getRecordSegmentationList().forEach(split -> { @@ -310,7 +310,7 @@ public class ChatServiceImpl implements ChatService { } answerMap.put("qaSplitList", qaSplitList); List> evidenceList = new ArrayList<>(); - if (!indexDetail.getChildren().isEmpty()) { + if (CollUtil.isNotEmpty(indexDetail.getChildren())) { indexDetail.getChildren().forEach(atomicIndexDTO -> { if (!atomicIndexDTO.getEvidentResultList().isEmpty()) { atomicIndexDTO.getEvidentResultList().forEach(evidentIndexResultDTO -> {