From 7b1f7bf57a633a8f8b189f1203e7eaeb040e1b9d Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 02 九月 2026 16:32:16 +0800
Subject: [PATCH] 【丽水】缙云人民-经管医生替换医生姓名

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

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
index c038d99..8f3df5b 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml
@@ -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