From 4d7b4d226168bbb40fcc6910a73f39a82f85776f Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 26 五月 2026 11:05:07 +0800
Subject: [PATCH] 新增七大步骤所有附件列表接口

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

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml
index 0c66ac5..a930bb3 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceDonationwitnessMapper.xml
@@ -158,7 +158,9 @@
         st.OrganDonation_Other as organdonationOther,
         st.DonationCategory as donationcategory,
         st.DeathJudgeAnnex as deathjudgeannex,
-        st.witness_state as witnessState
+        st.witness_state as witnessState,
+        st.IsSpendRemember as isspendremember,
+        st.IsRestoreRemains as isrestoreremains
         FROM
         service_donatebaseinfo sd
         LEFT JOIN service_donationwitness st ON sd.ID = st.InfoID
@@ -177,7 +179,9 @@
             <if test="operationdoctor != null  and operationdoctor != ''">and st.OperationDoctor = #{operationdoctor}
             </if>
             <if test="infoid != null">and sd.ID = #{infoid}</if>
+            <if test="witnessState != null">and st.witness_state = #{witnessState}</if>
         </where>
+        order by sd.InpatientNo desc
         <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
     </select>
 

--
Gitblit v1.9.3