From ee3f68b0d13f8387cd11d54c6348c2c4aa05ba4c Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 09 May 2024 17:24:52 +0800
Subject: [PATCH] 合约监听

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

diff --git a/src/main/resources/mapper/dapp/DappHdRecordMapper.xml b/src/main/resources/mapper/dapp/DappHdRecordMapper.xml
index a63bccb..1f86353 100644
--- a/src/main/resources/mapper/dapp/DappHdRecordMapper.xml
+++ b/src/main/resources/mapper/dapp/DappHdRecordMapper.xml
@@ -16,6 +16,24 @@
 			dapp_coin_price
 			order by CREATE_TIME desc
     </select>
+    <select id="findHdRecordInPage" resultType="cc.mrbird.febs.dapp.entity.DappHdRecord">
+        SELECT
+			*
+		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>
 
 	<select id="selectNewRecord" resultType="cc.mrbird.febs.dapp.entity.DappHdRecord">
 		SELECT

--
Gitblit v1.9.1