From 82a0d121b3581b3634887850e0bded5874afc85d Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期一, 26 十月 2026 11:03:15 +0800
Subject: [PATCH] 接口按service_donatebaseinfo表ReportTime 字段倒序
---
ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml
index 1ed4610..714a5be 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceMedicalevaluationMapper.xml
@@ -222,9 +222,9 @@
sm.assess_state
FROM service_donatebaseinfo sb
LEFT JOIN service_medicalevaluation sm ON sb.ID = sm.InfoID and sm.del_flag = 0
- and sb.del_flag = 0 and sm.ID is not null
+ and sm.ID is not null
<where>
- sb.termination_case = 0
+ sb.termination_case = 0 and sb.del_flag = 0
<if test="infoid != null">AND sb.ID = #{infoid}</if>
<if test="inpatientno != null">AND sb.InpatientNo = #{inpatientno}</if>
<if test="currentMedicalInstitution != null">AND sb.current_medical_institution = #{currentMedicalInstitution}</if>
@@ -245,7 +245,7 @@
#{treatmenthospitalname}
</if>
</where>
- order by sb.InpatientNo desc
+ order by sb.ReportTime desc
<if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
--
Gitblit v1.9.3