From 987e38327f849e1b13d8541246dde08d877db0e8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 14:10:43 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid

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

diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveOutMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveOutMapper.xml
index 705f198..beeb226 100644
--- a/smartor/src/main/resources/mapper/smartor/PatArchiveOutMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatArchiveOutMapper.xml
@@ -77,6 +77,7 @@
             resultMap="PatArchiveOutResult">
         <include refid="selectPatArchiveOutVo"/>
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             <if test="patientno != null  and patientno != ''">and patientno = #{patientno}</if>
             <if test="pattype != null  and pattype != ''">and pattype = #{pattype}</if>
@@ -118,6 +119,7 @@
         from (
         SELECT "浣忛櫌" as name1, count(1) as count FROM `pat_med_inhosp`
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             AND del_flag = 0 and endtime = null
             <if test="deptIds != null ">and deptId in
@@ -134,6 +136,7 @@
         union
         select "鍑洪櫌" name1, count(1) as count FROM `pat_med_inhosp`
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             AND del_flag=0 and endtime != null
             <if test="deptIds != null ">and deptId in

--
Gitblit v1.9.3