From d1c4c4b56f065d28cadf90370e0709294cfcdbc4 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 10 Oct 2022 16:16:32 +0800
Subject: [PATCH] 20220707

---
 src/main/resources/mapper/dapp/DappTransferRecordDao.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/dapp/DappTransferRecordDao.xml b/src/main/resources/mapper/dapp/DappTransferRecordDao.xml
index 4b211f6..ffd667b 100644
--- a/src/main/resources/mapper/dapp/DappTransferRecordDao.xml
+++ b/src/main/resources/mapper/dapp/DappTransferRecordDao.xml
@@ -6,9 +6,15 @@
         select * from dapp_transfer_record
         <where>
             <if test="record.address != '' and record.address != null">
-                and address=#{record.address}
+                and (from_address = #{record.address} or to_address = #{record.address})
             </if>
         </where>
+        order by create_time desc
+    </select>
+
+    <select id="selectByHash" resultType="cc.mrbird.febs.dapp.entity.DappTransferRecordEntity">
+        select * from dapp_transfer_record
+        where hash=#{hash}
     </select>
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1