添加冻结金额字段
This commit is contained in:
1 parent
2602897c23
commit
cdf32a86cb
4 files changed
+68
-1
No files matched your search
@@ -61,6 +61,14 @@ public class Apps extends BaseEntity
|
||||
@Excel(name = "usdt账号金额")
|
||||
private BigDecimal usdtBalance;
|
||||
|
||||
/** USDT冻结余额 */
|
||||
@Excel(name = "USDT冻结余额")
|
||||
private BigDecimal usdtFrozenBalance;
|
||||
|
||||
/** TRX冻结余额 */
|
||||
@Excel(name = "TRX冻结余额")
|
||||
private BigDecimal trxFrozenBalance;
|
||||
|
||||
/** 公钥 */
|
||||
@Excel(name = "公钥")
|
||||
private String publicKey;
|
||||
@@ -183,6 +191,24 @@ public class Apps extends BaseEntity
|
||||
{
|
||||
return usdtBalance;
|
||||
}
|
||||
public void setUsdtFrozenBalance(BigDecimal usdtFrozenBalance)
|
||||
{
|
||||
this.usdtFrozenBalance = usdtFrozenBalance;
|
||||
}
|
||||
|
||||
public BigDecimal getUsdtFrozenBalance()
|
||||
{
|
||||
return usdtFrozenBalance;
|
||||
}
|
||||
public void setTrxFrozenBalance(BigDecimal trxFrozenBalance)
|
||||
{
|
||||
this.trxFrozenBalance = trxFrozenBalance;
|
||||
}
|
||||
|
||||
public BigDecimal getTrxFrozenBalance()
|
||||
{
|
||||
return trxFrozenBalance;
|
||||
}
|
||||
public void setPublicKey(String publicKey)
|
||||
{
|
||||
this.publicKey = publicKey;
|
||||
@@ -269,6 +295,8 @@ public class Apps extends BaseEntity
|
||||
.append("deletedAt", getDeletedAt())
|
||||
.append("trxBalance", getTrxBalance())
|
||||
.append("usdtBalance", getUsdtBalance())
|
||||
.append("usdtFrozenBalance", getUsdtFrozenBalance())
|
||||
.append("trxFrozenBalance", getTrxFrozenBalance())
|
||||
.append("publicKey", getPublicKey())
|
||||
.append("privateKey", "<redacted>")
|
||||
.append("creditLimit", getCreditLimit())
|
||||
|
||||
@@ -54,6 +54,12 @@ public class AppsPlus implements Serializable
|
||||
/** usdt账号 */
|
||||
@Excel(name = "usdt账号金额")
|
||||
private BigDecimal usdtBalance;
|
||||
/** USDT冻结余额 */
|
||||
@Excel(name = "USDT冻结余额")
|
||||
private BigDecimal usdtFrozenBalance;
|
||||
/** TRX冻结余额 */
|
||||
@Excel(name = "TRX冻结余额")
|
||||
private BigDecimal trxFrozenBalance;
|
||||
/** 公钥 */
|
||||
@Excel(name = "公钥")
|
||||
private String publicKey;
|
||||
@@ -168,6 +174,24 @@ public class AppsPlus implements Serializable
|
||||
{
|
||||
return usdtBalance;
|
||||
}
|
||||
public void setUsdtFrozenBalance(BigDecimal usdtFrozenBalance)
|
||||
{
|
||||
this.usdtFrozenBalance = usdtFrozenBalance;
|
||||
}
|
||||
|
||||
public BigDecimal getUsdtFrozenBalance()
|
||||
{
|
||||
return usdtFrozenBalance;
|
||||
}
|
||||
public void setTrxFrozenBalance(BigDecimal trxFrozenBalance)
|
||||
{
|
||||
this.trxFrozenBalance = trxFrozenBalance;
|
||||
}
|
||||
|
||||
public BigDecimal getTrxFrozenBalance()
|
||||
{
|
||||
return trxFrozenBalance;
|
||||
}
|
||||
public void setPublicKey(String publicKey)
|
||||
{
|
||||
this.publicKey = publicKey;
|
||||
@@ -254,6 +278,8 @@ public class AppsPlus implements Serializable
|
||||
.append("deletedAt", getDeletedAt())
|
||||
.append("trxBalance", getTrxBalance())
|
||||
.append("usdtBalance", getUsdtBalance())
|
||||
.append("usdtFrozenBalance", getUsdtFrozenBalance())
|
||||
.append("trxFrozenBalance", getTrxFrozenBalance())
|
||||
.append("publicKey", getPublicKey())
|
||||
.append("privateKey", "<redacted>")
|
||||
.append("creditLimit", getCreditLimit())
|
||||
|
||||
@@ -320,6 +320,9 @@ public class AppsServiceImpl extends ServiceImpl<AppsMapper, AppsPlus> implement
|
||||
if (apps.getStatus() == null) apps.setStatus(1);
|
||||
if (apps.getTrxBalance() == null) apps.setTrxBalance(BigDecimal.ZERO);
|
||||
if (apps.getUsdtBalance() == null) apps.setUsdtBalance(BigDecimal.ZERO);
|
||||
// 冻结余额只能由后续账务流程变更,创建接口不接受客户端指定的初始值。
|
||||
apps.setUsdtFrozenBalance(BigDecimal.ZERO);
|
||||
apps.setTrxFrozenBalance(BigDecimal.ZERO);
|
||||
if (apps.getCreditLimit() == null) apps.setCreditLimit(BigDecimal.ZERO);
|
||||
// 公私钥只允许系统生成,忽略请求中传入的任何密钥字段。
|
||||
AppKeyPairResult keyPair = generateKeyPair();
|
||||
|
||||
Reference in new issue
Block a user