From e4dfb81cfc1e363f7aed2de8c3175a1ad3aa3f62 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 28 七月 2025 14:02:51 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/java/com/smartor/service/impl/HNGatherPatArchiveServiceImpl.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/java/com/smartor/service/impl/HNGatherPatArchiveServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/HNGatherPatArchiveServiceImpl.java
index 2b4c671..2cb62f0 100644
--- a/smartor/src/main/java/com/smartor/service/impl/HNGatherPatArchiveServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/HNGatherPatArchiveServiceImpl.java
@@ -125,6 +125,9 @@
             if (CollectionUtils.isNotEmpty(patArchives1)) {
                 patMedOuthosp1.setPatid(patArchives1.get(0).getId());
             } else {
+                if (CollectionUtils.isEmpty(patArchives)) {
+                    continue;
+                }
                 patArchiveMapper.insertPatArchiveSingle(patArchives.get(0));
                 patMedOuthosp1.setPatid(patArchives.get(0).getId());
             }

--
Gitblit v1.9.3