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/ServiceDonatebaseinfoMapper.xml | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml
index 6077521..18527b4 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatebaseinfoMapper.xml
@@ -242,7 +242,7 @@
<if test="gcsScore != null ">and gcs_score = #{gcsScore}</if>
</where>
- order by ReportTime desc
+ order by service_donatebaseinfo.ReportTime desc
<if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
</select>
@@ -260,7 +260,7 @@
</select>
<select id="getDonateBaseCountThisYear" resultType="java.lang.Integer">
select count(*) from service_donatebaseinfo b
- inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID
+ left join base_organization o on b.TreatmentHospitalNo = o.OrganizationID
<where>
AND b.del_flag=0
<if test="starttime != null ">and b.donatetime >= #{starttime}</if>
@@ -300,7 +300,7 @@
</select>
<select id="getAllDonateBaseInfoByTime" resultType="com.ruoyi.project.domain.ServiceDonatebaseinfo">
select * from service_donatebaseinfo b
- inner join base_organization o on b.TreatmentHospitalNo = o.OrganizationID
+ left join base_organization o on b.TreatmentHospitalNo = o.OrganizationID
<where>
<if test="starttime != null ">and b.ReportTime >= #{starttime}</if>
<if test="caseNo != null ">and b.case_no >= #{caseNo}</if>
@@ -350,21 +350,21 @@
<select id="getDistrictDonate" resultType="java.lang.String">
select o.city
from service_donatebaseinfo b
- inner join base_organization o on o.organizationid = b.treatmenthospitalno
+ left join base_organization o on o.organizationid = b.treatmenthospitalno
where (b.RecordState = '0' or b.RecordState = '1' or b.RecordState = '2')
</select>
<select id="getDistrictComplete" resultType="java.lang.String">
select o.city
from service_donatebaseinfo b
inner join service_donatecompletioninfo d on d.infoid = b.id
- inner join base_organization o on o.organizationid = b.treatmenthospitalno
+ left join base_organization o on o.organizationid = b.treatmenthospitalno
where d.CompleteTime > 0
</select>
<select id="getDistrictOrgans" resultType="java.lang.String">
select o.city
from service_donatebaseinfo b
inner join service_donateorgan d on d.infoid = b.id
- inner join base_organization o on o.organizationid = b.treatmenthospitalno
+ left join base_organization o on o.organizationid = b.treatmenthospitalno
where d.OrganGetTime > 0
</select>
<select id="getDonateNameById" resultType="java.lang.String">
@@ -376,7 +376,7 @@
<select id="getDistrictDonateByTime" resultType="java.lang.String">
select o.city
from service_donatebaseinfo b
- inner join base_organization o on o.organizationid = b.treatmenthospitalno
+ left join base_organization o on o.organizationid = b.treatmenthospitalno
where (b.RecordState = '0' or b.RecordState = '1' or b.RecordState = '2')
and b.ReportTime >= #{starttime}
and b.ReportTime <= #{endtime}
@@ -385,7 +385,7 @@
select o.city
from service_donatebaseinfo b
inner join service_donatecompletioninfo d on d.infoid = b.id
- inner join base_organization o on o.organizationid = b.treatmenthospitalno
+ left join base_organization o on o.organizationid = b.treatmenthospitalno
where d.del_flag = 0
and d.CompleteTime >= #{starttime}
and d.CompleteTime <= #{endtime}
@@ -394,7 +394,7 @@
<select id="gettreatmenthospitalnoCompleteByTime" resultType="java.lang.String">
select b.treatmenthospitalno from service_donatebaseinfo b
inner join service_donatecompletioninfo d on d.infoid=b.id
- inner join base_organization o on o.organizationid=b.treatmenthospitalno
+ left join base_organization o on o.organizationid=b.treatmenthospitalno
<where>
d.del_flag=0
<if test="starttime != null ">and d.CompleteTime >= #{starttime}</if>
@@ -409,7 +409,7 @@
select o.city
from service_donatebaseinfo b
inner join service_donateorgan d on d.infoid = b.id
- inner join base_organization o on o.organizationid = b.treatmenthospitalno
+ left join base_organization o on o.organizationid = b.treatmenthospitalno
WHERE d.del_flag = 0
AND d.OrganGetTime IS NOT NULL
AND d.OrganGetTime >= #{starttime}
--
Gitblit v1.9.3