From d88fffd5d757a23f302011ced88dea92e1ce31e9 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 30 一月 2026 13:48:20 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml |   83 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 80 insertions(+), 3 deletions(-)

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml
index aee2e13..a7355d1 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml
@@ -61,7 +61,7 @@
         <result property="reportername" column="ReporterName"/>
         <result property="reporterphone" column="ReporterPhone"/>
         <result property="reporttime" column="ReportTime"/>
-        <result property="del_flag" column="del_flag"/>
+        <result property="delFlag" column="del_flag"/>
         <result property="createBy" column="create_by"/>
         <result property="createTime" column="create_time"/>
         <result property="terminationCase" column="termination_case"/>
@@ -71,7 +71,8 @@
         <result property="occupation" column="Occupation"/>
         <result property="education" column="Education"/>
         <result property="nativeplace" column="NativePlace"/>
-        <result property="infoname" column="infoName"/>
+        <result property="infoName" column="info_name"/>
+        <result property="infoNo" column="info_no"/>
         <result property="infophone" column="infoPhone"/>
         <result property="deptid" column="deptid"/>
         <result property="deptname" column="deptname"/>
@@ -87,6 +88,14 @@
         <result property="currentDept" column="current_dept"/>
         <result property="firstDept" column="first_dept"/>
         <result property="reportId" column="report_id"/>
+        <result property="gcsScore" column="gcs_score"/>
+        <result property="coordinatorNo" column="coordinator_no"/>
+        <result property="coordinatorName" column="coordinator_name"/>
+        <result property="terminationResult" column="termination_result"/>
+        <result property="reportHospital" column="report_hospital"/>
+        <result property="currentHospital" column="current_hospital"/>
+        <result property="terminationType" column="termination_type"/>
+        <result property="extracontent" column="extracontent"/>
     </resultMap>
 
     <sql id="selectServiceDonatebaseinfoVo">
@@ -108,6 +117,8 @@
             service_donatebaseinfo.del_flag = 0
             <if test="name != null  and name != ''">and Name like concat('%', #{name}, '%')</if>
             <if test="sex != null ">and Sex = #{sex}</if>
+            <if test="coordinatorName != null ">and coordinator_name like concat('%',#{coordinatorName}, '%')</if>
+            <if test="coordinatorNo != null ">and coordinator_no = #{coordinatorNo}</if>
             <if test="caseNo != null ">and service_donatebaseinfo.case_no = #{caseNo}</if>
             <if test="idcardtype != null ">and IDCardType = #{idcardtype}</if>
             <if test="idcardno != null  and idcardno != ''">and IDCardNo = #{idcardno}</if>
@@ -210,7 +221,8 @@
             </if>
             <if test="reporterphone != null  and reporterphone != ''">and ReporterPhone = #{reporterphone}</if>
             <if test="reporttime != null ">and ReportTime = #{reporttime}</if>
-            <if test="infoname != null ">and infoName = #{infoname}</if>
+            <if test="infoName != null ">and info_name like concat('%',#{infoName},'%')</if>
+            <if test="infoNo != null ">and info_no = #{infoNo}</if>
             <if test="infophone != null ">and infoPhone = #{infophone}</if>
             <if test="createBy != null ">and `service_donatebaseinfo`.create_by = #{createBy}</if>
             <if test="starttime != null ">and donatetime >= #{starttime}</if>
@@ -226,6 +238,7 @@
             <if test="donateno != null ">and donateno = #{donateno}</if>
             <if test="workflow != null ">and workflow = #{workflow}</if>
             <if test="reportId != null ">and report_id = #{reportId}</if>
+            <if test="gcsScore != null ">and gcs_score = #{gcsScore}</if>
         </where>
 
         order by ReportTime desc
@@ -253,6 +266,7 @@
             <if test="caseNo != null ">and b.case_no >= #{caseNo}</if>
             <if test="reportId != null ">and b.report_id = #{reportId}</if>
             <if test="endtime != null ">and b.donatetime &lt;= #{endtime}</if>
+            <if test="gcsScore != null ">and b.gcs_score = #{gcsScore}</if>
             <if test="city != null and city != ''">and o.City = #{city}</if>
             <if test="reporterno != null and reporterno != ''">and b.ReporterNo = #{reporterno}</if>
         </where>
@@ -401,4 +415,67 @@
           AND d.OrganGetTime &lt;= #{endtime}
     </select>
 
+    <select id="donateBaseInfoProgressList" resultType="com.ruoyi.project.domain.dto.DonatebaseinfoProgressDTO">
+        SELECT sd.treatmenthospitalname AS treatmenthospitalname,
+        sd.treatmenthospitalno AS treatmenthospitalno,
+        sd.DonorNo AS donorno,
+        sd.id AS id,
+        sd.InpatientNo AS inpatientNo,
+        sd.case_no AS caseNo,
+        sd.NAME AS NAME,
+        sd.RecordState AS recordstate,
+        sd.termination_case AS terminationCase,
+        sd.termination_type AS terminationType,
+        sd.termination_result AS terminationResult,
+        sd.workflow AS workflow,
+        sd.Infectious AS infectious,
+        sd.Infectious_other AS infectiousOther,
+        sd.Sex AS sex,
+        sd.Age AS age,
+        sd.BloodType AS bloodtype,
+        sd.idcardno AS idcardno,
+        sd.ReportTime AS reportTime,
+        sd.coordinator_no AS coordinatorNo,
+        sd.coordinator_name AS coordinatorName,
+        sd.diagnosisname AS diagnosisname,
+        sd.extracontent AS extracontent,
+        sm.assess_state AS assessState,-- 璇勪及鐘舵��
+        sm.assess_time AS assessTime,-- 璇勪及鏃堕棿
+        sr.SignDate AS signDate,-- 浜插睘纭鏃堕棿
+        se.expert_conclusion AS expertConclusion,-- 浼︾悊瀹℃煡涓撳缁撹
+        se.expert_time AS expertTime,-- 浼︾悊瀹℃煡涓撳缁撹鏃堕棿
+        (SELECT COUNT(*) FROM service_donateorgan sdo WHERE sdo.InfoID = sd.ID) AS organCount,-- 鍣ㄥ畼鍒嗛厤鏁伴噺
+        sdw.OperationBegTime AS operationBegTime,-- 鑾峰彇瑙佽瘉鏃堕棿
+        sdt.CompleteTime AS completeTime -- 瀹屾垚鐧昏鏃堕棿
+
+        FROM service_donatebaseinfo sd
+        LEFT JOIN service_medicalevaluation sm ON sd.ID = sm.InfoID
+        AND sm.del_flag = 0 -- 鎹愮尞璇勪及
+        LEFT JOIN service_relativesconfirmation sr ON sd.ID = sr.InfoID
+        AND sr.del_flag = 0-- 鎹愮尞纭
+        LEFT JOIN service_ethicalreviewinitiate se ON sd.ID = se.InfoID
+        AND se.del_flag = 0-- 浼︾悊瀹℃煡
+        LEFT JOIN service_donationwitness sdw ON sd.ID = sdw.InfoID
+        AND sdw.del_flag = 0-- 鑾峰彇瑙佽瘉
+        LEFT JOIN service_donatecompletioninfo sdt ON sd.ID = sdt.InfoID
+        AND sdt.del_flag = 0 -- 瀹屾垚鐧昏
+
+        <where>sd.del_flag = 0
+            <if test="terminationCase != null ">AND sd.termination_case = #{terminationCase}</if>
+            <if test="treatmentHospitalName != null ">AND sd.TreatmentHospitalName = #{treatmentHospitalName}</if>
+            <if test="name != null ">AND sd.Name = #{name}</if>
+            <if test="inpatientNo != null ">AND sd.InpatientNo = #{inpatientNo}</if>
+            <if test="startAge != null">AND sd.age &gt;= #{startAge}</if>
+            <if test="endAge !=null">AND sd.age &lt;= #{endAge}
+            </if>
+            <if test="idcardno != null  and idcardno != ''">and IDCardNo = #{idcardno}</if>
+            <if test="recordstate != null and recordstate != ''">and sd.RecordState = #{recordstate}</if>
+            <if test="workflow != null">and sd.workflow = #{workflow}</if>
+            <if test="diagnosisName != null">and sd.DiagnosisName like concat('%', #{diagnosisName}, '%')</if>
+        </where>
+
+        ORDER BY sd.ReportTime DESC
+        <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
+
+    </select>
 </mapper>

--
Gitblit v1.9.3