From 7ca6d7d7da579f9a32c7d253eccb0f4e1ba6b6ef Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 20 一月 2026 14:01:55 +0800
Subject: [PATCH] 【丽水】/smartor/patarchive/patInfoByContion、/smartor/patarchive/exportPatInfo、/smartor/patarchive/getPatientInfoQC 调整sql,不关联pat_archivetag

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

diff --git a/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml b/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
index 7bbd5a9..3648ada 100644
--- a/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
@@ -134,7 +134,7 @@
     <select id="selectHospitalRecordList" parameterType="com.smartor.domain.HospitalRecord"
             resultMap="HospitalRecordResult">
         <include refid="selectHospitalRecordVo"/>
-        <where>
+        where 1=1
             <if test="ID != null  and ID != ''">and ID = #{ID}</if>
             <if test="sourceSystem != null  and sourceSystem != ''">and SourceSystem = #{sourceSystem}</if>
             <if test="messageID != null  and messageID != ''">and MessageID = #{messageID}</if>
@@ -214,7 +214,6 @@
             </if>
             <if test="taskStatus != null  and taskStatus != ''">and taskStatus = #{taskStatus}</if>
             <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
-        </where>
     </select>
 
     <select id="selectHospitalRecordByID" parameterType="String" resultMap="HospitalRecordResult">

--
Gitblit v1.9.3