From ae086bc3ad6f785e6368b84e57a7e199c675779b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 02 四月 2025 11:42:28 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
index ca1e06f..036a68a 100644
--- a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -432,7 +432,7 @@
             resultMap="PatArchiveOthreInfoResult">
 
         SELECT
-        a.id,
+        DISTINCT a.id,
         a.age_unit,
         a.age_unit2,
         a.patid_his,
@@ -495,7 +495,7 @@
             resultMap="PatArchiveOthreInfoResult">
 
         select
-        a.id,
+        DISTINCT a.id,
         a.age_unit,
         a.age_unit2,
         a.inhospno,
@@ -540,7 +540,6 @@
         d.endtime,
         d.nurse_name,
         d.nurse_id,
-        d.endtime,
         d.out_way_id,
         d.leavehospitaldistrictname AS leavehospitaldistrictname,
         d.leavehospitaldistrictcode AS leavehospitaldistrictcode,
@@ -632,7 +631,7 @@
             resultMap="PatArchiveOthreInfoResult">
 
         select
-        a.id,
+        DISTINCT a.id,
         a.age_unit,
         a.age_unit2,
         a.patid_his,

--
Gitblit v1.9.3