From 0c389d73cc79a0027cf779721c6bf184b12f5d86 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 30 Sep 2025 18:53:21 +0800
Subject: [PATCH] 1
---
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiWalletController.java | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiWalletController.java b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiWalletController.java
index b2b1d4b..21b46b1 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiWalletController.java
+++ b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiWalletController.java
@@ -1,5 +1,6 @@
package com.yami.trading.api.controller;
+import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yami.trading.api.dto.ChannelBlockchainDto;
import com.yami.trading.api.model.GetChannelBlockchainModel;
@@ -215,13 +216,13 @@
df2.setRoundingMode(RoundingMode.FLOOR);
// String partyId ="dcc0dd35a49c383dadabc4dc030afe70";
String partyId = SecurityUtils.getCurrentUserId();
- CapitaltWallet usdt = null;
+ Wallet usdt = null;
if (StringUtils.isNotEmpty(partyId)) {
-// usdt = this.walletService.saveWalletByPartyId(partyId);
- usdt = capitaltWalletService.getUserIdWallet(partyId);
+ usdt = this.walletService.saveWalletByPartyId(partyId);
+// usdt = capitaltWalletService.getUserIdWallet(partyId);
}
if (null == usdt) {
- usdt = new CapitaltWallet();
+ usdt = new Wallet();
usdt.setMoney(new BigDecimal(0));
usdt.setLockMoney(new BigDecimal(0));
usdt.setFreezeMoney(new BigDecimal(0));
@@ -275,7 +276,7 @@
}
List<WalletExtend> walletExtends = null;
log.info(list_symbol.toString() + "=============");
- if (StringUtils.isNotEmpty(partyId)) {
+ if (StringUtils.isNotEmpty(partyId) && CollectionUtil.isNotEmpty(list_symbol)) {
walletExtends = this.walletService.findExtend(partyId, list_symbol);
}
if (null == walletExtends) {
@@ -365,8 +366,8 @@
} else {
mapUsdt.put("lock_amount", null);
}
- if (mapRet.get("freeze_amount") != null) {
- mapUsdt.put("freeze_amount", df2.format(Double.parseDouble(mapRet.get("freeze_amount").toString())));
+ if (mapRet.get("freeze_money") != null) {
+ mapUsdt.put("freeze_amount", df2.format(Double.parseDouble(mapRet.get("freeze_money").toString())));
} else {
mapUsdt.put("freeze_amount", null);
}
--
Gitblit v1.9.3