From a2c1b3ea35b71327b181b8743042b179938f9f55 Mon Sep 17 00:00:00 2001 From: xueqingkun Date: Wed, 19 Feb 2025 17:47:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/supervision/police/service/impl/ChatServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -> {