From ae386701f1a3a3d676cdedfb642498d97bdaa89e Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期四, 03 九月 2026 11:10:49 +0800
Subject: [PATCH] 【丽水】手术随访调整

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

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
index c038d99..6fe3025 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
@@ -457,7 +457,7 @@
         from pat_med_operation pmo
         join pat_med_operation_item pmoi
         on pmoi.opid = pmo.opid
-        left join pat_med_inhosp pmi
+        join pat_med_inhosp pmi
         on pmo.serialnum = pmi.serialnum
         where
         pmo.del_flag = '0'
@@ -514,6 +514,9 @@
         </if>
         <if test="inhospstate != null and inhospstate != ''">
             and pmi.inhospstate = #{inhospstate}
+            <if test="inhospstate == '1'">
+                and pmi.endtime is not null
+            </if>
         </if>
         <if test="serialnum != null and serialnum != ''">
             and pmo.serialnum = #{serialnum}

--
Gitblit v1.9.3