Skip to content

Commit

Permalink
Update INNER JOIN tbl_tx_detail_index
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Jan 26, 2024
1 parent 0142f97 commit 0ab701b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
AND asset_name = #{assetName}
</if>
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}
Expand All @@ -167,6 +167,7 @@
</if>
AND d.event_type IN (2, 3)
ORDER BY block_height DESC, block_index, tx_hash, tx_index
LIMIT #{startIndex}, #{pageSize}
</select>

<select id="selectTransferTxsByTime" resultType="com.github.ontio.model.dto.TransferTxDto">
Expand Down Expand Up @@ -452,12 +453,13 @@
WHERE idx.address = #{address}
AND o.audit_flag = 1
ORDER BY idx.desc_block_height, idx.tx_hash, idx.tx_index
LIMIT #{startIndex}, #{pageSize}
-- LIMIT #{startIndex}, #{pageSize}
) idx ON idx.hash = d.tx_hash
WHERE d.from_address = #{address}
OR d.to_address = #{address}
AND d.event_type IN (2, 3)
ORDER BY block_height DESC, block_index, tx_hash, tx_index
LIMIT #{startIndex}, #{pageSize}
</select>

<select id="selectCalledContractHashesOfTokenType" resultType="java.lang.String">
Expand Down Expand Up @@ -600,11 +602,12 @@
)
</if>
ORDER BY idx.desc_block_height, idx.tx_hash, idx.tx_index
LIMIT #{startIndex}, #{pageSize}
-- LIMIT #{startIndex}, #{pageSize}
) idx ON idx.hash = d.tx_hash
WHERE (d.from_address = #{address}
OR d.to_address = #{address})
ORDER BY block_height DESC, block_index, tx_hash, tx_index
LIMIT #{startIndex}, #{pageSize}
</select>

<select id="selectPayerByHash" resultType="String">
Expand Down

0 comments on commit 0ab701b

Please sign in to comment.