From 718e6e74a58e7958778e8bd5afea1613f1aedc14 Mon Sep 17 00:00:00 2001 From: yyb <1416014977@qq.com> Date: Mon, 26 Jan 2026 10:01:30 +0800 Subject: [PATCH] =?UTF-8?q?update=20=20=E6=9C=80=E8=BF=91=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E4=B8=8D=E5=86=8D=E5=B1=95=E7=A4=BA=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E4=B8=BA0=E7=9A=84=E6=B5=81=E6=B0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/lease/LeasePayRechargeMessageMapper.xml | 9 +++++++-- .../mapper/lease/LeasePayRecordMessageMapper.xml | 9 +++++++-- .../mapper/lease/LeasePayWithdrawMessageMapper.xml | 7 ++++++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/main/resources/mapper/lease/LeasePayRechargeMessageMapper.xml b/src/main/resources/mapper/lease/LeasePayRechargeMessageMapper.xml index 5cc5355..71d7bac 100644 --- a/src/main/resources/mapper/lease/LeasePayRechargeMessageMapper.xml +++ b/src/main/resources/mapper/lease/LeasePayRechargeMessageMapper.xml @@ -67,8 +67,13 @@ from lease_pay_recharge_message from lease_pay_recharge_message ( - (queue_id = #{item.queueId} AND address = #{item.fromAddress} AND `chain` = #{item.fromChain} AND symbol = #{item.fromSymbol}) - ) + (queue_id = #{item.queueId} AND + address = #{item.fromAddress} AND + `chain` = #{item.fromChain} AND + symbol = #{item.fromSymbol} AND + amount != 0 + ) + ) order by update_time desc limit 5 diff --git a/src/main/resources/mapper/lease/LeasePayRecordMessageMapper.xml b/src/main/resources/mapper/lease/LeasePayRecordMessageMapper.xml index 30a8011..240e65e 100644 --- a/src/main/resources/mapper/lease/LeasePayRecordMessageMapper.xml +++ b/src/main/resources/mapper/lease/LeasePayRecordMessageMapper.xml @@ -116,8 +116,13 @@ from lease_pay_record_message ( - (auth_id = #{item.authId} AND from_address = #{item.fromAddress} AND `from_chain` = #{item.fromChain} AND from_symbol = #{item.fromSymbol}) - ) + (auth_id = #{item.authId} AND + from_address = #{item.fromAddress} AND + `from_chain` = #{item.fromChain} AND + from_symbol = #{item.fromSymbol} AND + real_amount != 0) + ) + ) order by update_time desc limit 5 diff --git a/src/main/resources/mapper/lease/LeasePayWithdrawMessageMapper.xml b/src/main/resources/mapper/lease/LeasePayWithdrawMessageMapper.xml index 7065c14..07672f7 100644 --- a/src/main/resources/mapper/lease/LeasePayWithdrawMessageMapper.xml +++ b/src/main/resources/mapper/lease/LeasePayWithdrawMessageMapper.xml @@ -101,7 +101,12 @@ FROM lease_pay_withdraw_message from lease_pay_withdraw_message ( - ( auth_id = #{item.authId} AND from_address = #{item.fromAddress} AND `from_chain` = #{item.fromChain} AND from_symbol = #{item.fromSymbol}) + ( auth_id = #{item.authId} AND + from_address = #{item.fromAddress} AND + `from_chain` = #{item.fromChain} AND + from_symbol = #{item.fromSymbol} AND + `amount` != 0 + ) ) order by update_time desc limit 5