From 2d7a2367a2dad1d9a2a8306a05ca08d7951d20ee Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期六, 10 十月 2026 09:35:43 +0800
Subject: [PATCH] 查询增加捐献类别字段,住院号

---
 ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml
index 3c927aa..1ed4610 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml
@@ -202,6 +202,7 @@
         sb.TreatmentHospitalName,
         sb.TreatmentHospitalNo,
         sb.DonationCategory as donationcategory,
+        sb.InpatientNo AS inpatientno,
         sb.DonorNo,
         sb.case_no,
         sb.Name,
@@ -226,7 +227,7 @@
             sb.termination_case = 0
             <if test="infoid != null">AND sb.ID = #{infoid}</if>
             <if test="inpatientno != null">AND sb.InpatientNo = #{inpatientno}</if>
-            <if test="urrentMedicalInstitution != null">AND sb.current_medical_institution = #{urrentMedicalInstitution}</if>
+            <if test="currentMedicalInstitution != null">AND sb.current_medical_institution = #{currentMedicalInstitution}</if>
             <if test="caseNo != null and caseNo != ''">AND sm.case_no = #{caseNo}</if>
             <if test="donorno != null and donorno != ''">AND sm.DonorNo = #{donorno}</if>
             <if test="diagnosisname != null and diagnosisname != ''">AND sm.DiagnosisName = #{diagnosisname}</if>
@@ -244,7 +245,7 @@
                 #{treatmenthospitalname}
             </if>
         </where>
-        order by sd.InpatientNo desc
+        order by sb.InpatientNo desc
 
         <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
 

--
Gitblit v1.9.3