From 251908db334e130dfd6566f589dd258e8df0a2cf Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 25 Apr 2024 14:22:52 +0800
Subject: [PATCH] 质押流水记录

---
 src/main/resources/mapper/dapp/DappHdRecordMapper.xml |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/dapp/DappHdRecordMapper.xml b/src/main/resources/mapper/dapp/DappHdRecordMapper.xml
index dd1d7e7..1f86353 100644
--- a/src/main/resources/mapper/dapp/DappHdRecordMapper.xml
+++ b/src/main/resources/mapper/dapp/DappHdRecordMapper.xml
@@ -21,6 +21,17 @@
 			*
 		FROM
 			dapp_hd_record
+
+		<where>
+			<if test="record != null">
+				<if test="record.startTime != null and record.startTime != ''">
+					and create_time &gt;= #{record.startTime}
+				</if>
+				<if test="record.endTime != null and record.endTime != ''">
+					and create_time &lt;= #{record.endTime}
+				</if>
+			</if>
+		</where>
 			order by CREATE_TIME desc
     </select>
 

--
Gitblit v1.9.1