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/HospitalRecordMapper.xml |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml b/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
index 7bbd5a9..202ea0b 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>
@@ -173,8 +173,8 @@
             </if>
             <if test="encAdmSource != null  and encAdmSource != ''">and EncAdmSource = #{encAdmSource}</if>
             <if test="encInhostype != null  and encInhostype != ''">and EncInhostype = #{encInhostype}</if>
-            <if test="encDietName != null  and encDietName != ''">and EncDietName like concat('%', #{encDietName},
-                '%')
+            <if test="encDietName != null  and encDietName != ''">
+                and EncDietName like concat('%', #{encDietName},'%')
             </if>
             <if test="encOuthostype != null  and encOuthostype != ''">and EncOuthostype = #{encOuthostype}</if>
             <if test="encVisitnum != null  and encVisitnum != ''">and EncVisitnum = #{encVisitnum}</if>
@@ -201,8 +201,8 @@
             <if test="encHavebaby != null  and encHavebaby != ''">and EncHavebaby = #{encHavebaby}</if>
             <if test="encDiagList != null  and encDiagList != ''">and EncDiagList = #{encDiagList}</if>
             <if test="directorCode != null  and directorCode != ''">and DirectorCode = #{directorCode}</if>
-            <if test="directorName != null  and directorName != ''">and DirectorName like concat('%', #{directorName},
-                '%')
+            <if test="directorName != null  and directorName != ''">
+                and DirectorName like concat('%', #{directorName},'%')
             </if>
             <if test="dncDiagnosisCode != null  and dncDiagnosisCode != ''">and EncDiagnosisCode = #{dncDiagnosisCode}
             </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