From c1f47dd490c6c8d69708eb7cda2330bb89623257 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 02 三月 2026 11:20:12 +0800
Subject: [PATCH] 【丽水】多维度随访
---
smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index 5e0594e..3934f1a 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -1013,7 +1013,8 @@
where 1=1
and del_flag = 0
and service_type=2
- and is_visit_again = 0
+ and visit_count is not null
+ and visit_count = 1
<if test="orgid != null and orgid != ''">
and orgid = #{orgid}
</if>
@@ -1042,7 +1043,8 @@
where 1=1
and del_flag = 0
and service_type=2
- and is_visit_again = 1
+ and visit_count is not null
+ and visit_count > 1
<if test="orgid != null and orgid != ''">
and orgid = #{orgid}
</if>
@@ -1089,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