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/HNGatherPatArchiveMapper.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/HNGatherPatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/HNGatherPatArchiveMapper.xml
index 59f240b..c137f5b 100644
--- a/smartor/src/main/resources/mapper/smartor/HNGatherPatArchiveMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/HNGatherPatArchiveMapper.xml
@@ -368,6 +368,7 @@
         select user_id, role_id, orgid
         FROM yhyjsxx
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             <if test="hisUserId != null ">and user_id = #{hisUserId}</if>
         
@@ -378,6 +379,7 @@
         dept_id,dept_name,deptparent,del_flag,orgid,create_time,create_by,update_time,update_by
         FROM yhyksxx
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             AND user_id != 'admin'
             <if test="hisUserId != null ">and user_id = #{hisUserId}</if>
@@ -388,6 +390,7 @@
     <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult">
         <include refid="selectPatArchiveVo"/>
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if>
             <if test="idcardno != null  and idcardno != ''">and idcardno = #{idcardno}</if>
@@ -498,6 +501,7 @@
         FROM
         cryxx b
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
 
             <if test="startOutHospTime != null ">and to_char(b.endtime,'YYMMDD') &gt;=
@@ -557,6 +561,7 @@
         mainsuit
         from mzxx
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
 
             <if test="beginTime != null ">and to_char( admitdate,'YYMMDD') &gt;=
@@ -580,6 +585,7 @@
         icdpym
         from jbxx
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             <if test="icdcode != null  and icdcode != ''">and icdcode = #{icdcode}</if>
             <if test="lastflag != null  and lastflag != ''">and lastflag = #{lastflag}</if>
@@ -603,6 +609,7 @@
         u.login_ip, u.login_date, u.create_by, u.create_time, u.remark
         from ryxx u
         WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
 
             <if test="userId != null and userId != 0">
                 AND u.user_id = #{userId}

--
Gitblit v1.9.3