From 0ab701bdc15ffff3e81ca2d4c37497716921e06e Mon Sep 17 00:00:00 2001 From: leej1012 Date: Fri, 26 Jan 2024 11:15:18 +0800 Subject: [PATCH] Update INNER JOIN tbl_tx_detail_index --- .../src/main/resources/mapper/TxDetailMapper.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/back-end-projects/Explorer/src/main/resources/mapper/TxDetailMapper.xml b/back-end-projects/Explorer/src/main/resources/mapper/TxDetailMapper.xml index edf5e9c9..ee9b86ab 100644 --- a/back-end-projects/Explorer/src/main/resources/mapper/TxDetailMapper.xml +++ b/back-end-projects/Explorer/src/main/resources/mapper/TxDetailMapper.xml @@ -157,7 +157,7 @@ AND asset_name = #{assetName} ORDER BY desc_block_height, tx_hash, tx_index - LIMIT #{startIndex}, #{pageSize} +-- LIMIT #{startIndex}, #{pageSize} ) idx ON idx.hash = d.tx_hash LEFT JOIN tbl_contract c ON d.contract_hash = c.contract_hash WHERE (d.from_address = #{address} @@ -167,6 +167,7 @@ AND d.event_type IN (2, 3) ORDER BY block_height DESC, block_index, tx_hash, tx_index + LIMIT #{startIndex}, #{pageSize}