From 2d6018d0d3a4e21ddf805d8f2eaae7260f512c1a Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 02 三月 2026 11:23:17 +0800
Subject: [PATCH] 【丽水】更新出院状态
---
smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index f9abd3e..3934f1a 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -1013,6 +1013,7 @@
where 1=1
and del_flag = 0
and service_type=2
+ and visit_count is not null
and visit_count = 1
<if test="orgid != null and orgid != ''">
and orgid = #{orgid}
@@ -1042,7 +1043,7 @@
where 1=1
and del_flag = 0
and service_type=2
-
+ and visit_count is not null
and visit_count > 1
<if test="orgid != null and orgid != ''">
and orgid = #{orgid}
@@ -1090,4 +1091,16 @@
) AS combined_data
</select>
+ <!-- 鏌ヨ涓変釜缁村害浠绘剰涓�涓湭澶勭悊鐨勫嚭闄㈡偅鑰� -->
+ <select id="selectNeedProcessList" resultMap="PatMedInhospResult">
+ SELECT * FROM pat_med_inhosp
+ WHERE inhospstate = '1'
+ AND fuflag = '1'
+ AND del_flag = '0'
+ AND (
+ dept_check_flag = '0'
+ OR ward_check_flag = '0'
+ OR diag_check_flag = '0'
+ )
+ </select>
</mapper>
--
Gitblit v1.9.3