From 38057d75677cea95dd109cb79b09c82ab6ae8ccc Mon Sep 17 00:00:00 2001 From: dorion <872354125@qq.com> Date: Tue, 30 Jul 2024 21:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4trx=E7=9B=91=E5=90=AC?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=AD=9B=E9=80=89=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trx2Energy/account/trx2Energy.html | 24 +++++++++++++++++-- .../templates/trx2Energy/fail/fail.html | 5 ++-- .../templates/trx2Energy/freeze/add.html | 2 +- .../templates/trx2Energy/freeze/freeze.html | 15 ++++++------ .../templates/trx2Energy/monitor/monitor.html | 2 +- .../templates/usdt2Trx/account/usdt2Trx.html | 24 +++++++++++++++++-- .../templates/usdt2Trx/monitor/monitor.html | 2 +- .../core/domain/entity/FreezeBalanceInfo.java | 4 ++-- .../quartz/task/UndelegateEnergyTask.java | 4 +--- .../domain/vo/MonitorAddressInfoVO.java | 2 +- .../handler/TRX2EneryTransferHandler.java | 4 ++-- .../handler/Usdt2TrxTransferHandler.java | 4 ++-- .../mapper/exchange/TrxExchangeInfoMapper.xml | 3 +-- .../mapper/system/ErrorLogMapper.xml | 1 + 14 files changed, 68 insertions(+), 28 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html index b5c772668..4c75cceeb 100644 --- a/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html @@ -104,10 +104,30 @@ title: '能量资源', },{ field: 'totalFrozen', - title: '抵押资产TRX', + title: '在押资产', + formatter: function (value, row, index) { + // 确保值是一个数字 + if (!isNaN(value)) { + // 保留两位小数 + return parseFloat(value).toFixed(2); + } else { + // 如果值不是数字,直接返回原值 + return value; + } + } },{ field: 'trxBalance', - title: 'TRX余额', + title: '账户余额', + formatter: function (value, row, index) { + // 确保值是一个数字 + if (!isNaN(value)) { + // 保留两位小数 + return parseFloat(value).toFixed(2); + } else { + // 如果值不是数字,直接返回原值 + return value; + } + } }, { field: 'fcd', diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html index fc979ce92..a84ad6a95 100644 --- a/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html @@ -96,7 +96,8 @@ field: 'fromAddress', title: '转出账户', formatter: function (value, row, index) { - return "" + value + ""; + const maskedValue = value.replace(/^(.{6}).*(.{8})$/, '$1***$2'); + return "" + maskedValue + ""; } }, { @@ -179,7 +180,7 @@ }, { field: 'calcRule', - title: '笔数计算规则', + title: '能量规则', formatter: function(value, row, index) { return $.table.selectDictLabel(calcRuleDatas, value); } diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html index e84f70fb3..e25b3caec 100644 --- a/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html @@ -23,7 +23,7 @@
- +
  • - + diff --git a/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml index 3c97caa0b..aee480336 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml @@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and lcd = #{lcd} and lcu = #{lcu} + order by fcd desc