From e3241a8a2b867fb60cd63edd64744a1fbfae0d1d Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Wed, 11 Dec 2024 17:14:30 +0800
Subject: [PATCH] 更改查询方式
---
assess-system/src/main/resources/mapper/AssProjectSupplementMapper.xml | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/assess-system/src/main/resources/mapper/AssProjectSupplementMapper.xml b/assess-system/src/main/resources/mapper/AssProjectSupplementMapper.xml
index d2fe450..8a541e4 100644
--- a/assess-system/src/main/resources/mapper/AssProjectSupplementMapper.xml
+++ b/assess-system/src/main/resources/mapper/AssProjectSupplementMapper.xml
@@ -28,11 +28,17 @@
left join sys_agency a on a.id=s.agency_id
<where>
<if test="name!=null and name!=''">
- and s.name like ('%',#{name},'%')
+ and s.name like concat('%',#{name},'%')
</if>
<if test="agencyId!=null">
and s.agency_id =#{agencyId}
</if>
+ <if test="params.startTime!=null and params.startTime!=''">
+ and s.filing_date >= #{params.startTime}
+ </if>
+ <if test="params.endTime!=null and params.endTime!=''">
+ and s.filing_date <= #{params.endTime}
+ </if>
</where>
order by s.create_time desc
</select>
--
Gitblit v1.9.2