From 222df20f3bd705fe84f1b9373cc6c7e9c7dd0763 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期五, 16 十月 2026 14:34:26 +0800
Subject: [PATCH] 医学评估基础信息作废显示异常 患者死亡信息作废显示异常

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

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatemaintenanceMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatemaintenanceMapper.xml
index 8a6b42c..328e9e4 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatemaintenanceMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatemaintenanceMapper.xml
@@ -70,12 +70,11 @@
         FROM
         service_donatebaseinfo sd
         LEFT JOIN service_donatemaintenance sdm ON sd.ID = sdm.InfoID
-        AND sd.del_flag = 0
         AND sdm.del_flag = 0
         and sdm.ID is not null
         left join service_deathinfo sdt on sd.ID = sdt.infoID and sdt.del_flag=0 and sdt.ID is not null
         <where>
-            sd.termination_case = 0
+            sd.del_flag = 0 and sd.termination_case = 0
             <if test="infoid != null ">and sd.ID = #{infoid}</if>
             <if test="inpatientno != null ">and sd.InpatientNo = #{inpatientno}</if>
             <if test="caseNo != null  and caseNo != ''">and case_no = #{caseNo}</if>

--
Gitblit v1.9.3