Skip to content

Commit

Permalink
Update queryTransferTxs
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Nov 25, 2024
1 parent 9930965 commit 698a9fc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,10 @@ public ResponseBean queryRankings(List<Short> rankingIds, short duration) {
// 查询所有交易的接口
@Override
public ResponseBean queryTransferTxsWithTotalByPage(String address, String assetName, Integer pageNumber, Integer pageSize) {
if ("AFmseVrdL9f9oyCzZefL9tG6UbviEH9ugK".equalsIgnoreCase(address)) {
PageResponseBean pageResponse = new PageResponseBean(Collections.emptyList(), 0);
return new ResponseBean(ErrorInfo.SUCCESS.code(), ErrorInfo.SUCCESS.desc(), pageResponse);
}
PageResponseBean pageResponse;
Integer txCount = addressDailyAggregationMapper.countAddressTotalTx(address, assetName);
// Integer txCount = txDetailMapper.selectTransferTxsCount(address, assetName);
Expand All @@ -1473,6 +1477,10 @@ public ResponseBean queryTransferTxsWithTotalByPage(String address, String asset
// 查询一个地址的所有转账信息
@Override
public ResponseBean queryTransferTxsOfTokenTypeByPage(String address, String tokenType, Integer pageNumber, Integer pageSize) {
if ("AFmseVrdL9f9oyCzZefL9tG6UbviEH9ugK".equalsIgnoreCase(address)) {
PageResponseBean pageResponse = new PageResponseBean(Collections.emptyList(), 0);
return new ResponseBean(ErrorInfo.SUCCESS.code(), ErrorInfo.SUCCESS.desc(), pageResponse);
}
tokenType = tokenType.toLowerCase();
PageResponseBean pageResponse;
Integer txCount = addressDailyAggregationMapper.countAddressTotalTxOfTokenType(address, tokenType);
Expand Down

0 comments on commit 698a9fc

Please sign in to comment.