From 579438ab87a88332f3643fbeefb3bbc43c87ae59 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 04 十一月 2026 10:36:43 +0800
Subject: [PATCH] 【丽水】妇幼门诊接诊完成记录生成专科档案

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

diff --git a/smartor/src/main/resources/mapper/smartor/PatSpecificArchiveGenerateConfigMapper.xml b/smartor/src/main/resources/mapper/smartor/PatSpecificArchiveGenerateConfigMapper.xml
index 9e35f07..a96dc68 100644
--- a/smartor/src/main/resources/mapper/smartor/PatSpecificArchiveGenerateConfigMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatSpecificArchiveGenerateConfigMapper.xml
@@ -57,6 +57,14 @@
             </if>
     </select>
 
+    <select id="selectEffectivePatSpecificArchiveGenerateConfigList" resultMap="PatSpecificArchiveGenerateConfigResult">
+        <include refid="selectPatSpecificArchiveGenerateConfigVo"/>
+        where del_flag = '0'
+          and (orgid = #{orgid} or orgid is null or orgid = '')
+          and (campusid is null or campusid = '' or campusid = #{campusid})
+        order by case when orgid = #{orgid} then 0 else 1 end, id asc
+    </select>
+
     <select id="selectPatSpecificArchiveGenerateConfigById" parameterType="Long" resultMap="PatSpecificArchiveGenerateConfigResult">
         <include refid="selectPatSpecificArchiveGenerateConfigVo"/>
         where id = #{id}

--
Gitblit v1.9.3