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 | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml b/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
index f4ae969..202ea0b 100644
--- a/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
@@ -135,7 +135,6 @@
resultMap="HospitalRecordResult">
<include refid="selectHospitalRecordVo"/>
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>
@@ -174,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},
- AND '%')
+ <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>
@@ -202,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},
- AND '%')
+ <if test="directorName != null and directorName != ''">
+ and DirectorName like concat('%', #{directorName},'%')
</if>
<if test="dncDiagnosisCode != null and dncDiagnosisCode != ''">and EncDiagnosisCode = #{dncDiagnosisCode}
</if>
@@ -215,7 +214,6 @@
</if>
<if test="taskStatus != null and taskStatus != ''">and taskStatus = #{taskStatus}</if>
<if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
-
</select>
<select id="selectHospitalRecordByID" parameterType="String" resultMap="HospitalRecordResult">
--
Gitblit v1.9.3