From 8a6e55cccdef5989b296b04a2c514341db70195f Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 24 May 2021 14:37:11 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/modules/otc/controller/OtcMarketBussinessController.java | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMarketBussinessController.java b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMarketBussinessController.java
index 3666fdc..7c05a68 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMarketBussinessController.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcMarketBussinessController.java
@@ -3,7 +3,9 @@
import com.xcong.excoin.common.LoginUserUtils;
import com.xcong.excoin.common.response.Result;
import com.xcong.excoin.modules.member.dao.MemberDao;
+import com.xcong.excoin.modules.member.dao.MemberWalletCoinDao;
import com.xcong.excoin.modules.member.entity.MemberEntity;
+import com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity;
import com.xcong.excoin.modules.otc.dto.MbAddDto;
import com.xcong.excoin.modules.otc.entity.OtcMarketBussiness;
import com.xcong.excoin.modules.otc.mapper.OtcMarketBussinessMapper;
@@ -30,7 +32,7 @@
public class OtcMarketBussinessController {
private final OtcMarketBussinessService otcMarketBussinessService;
- private final OtcEntrustOrderService otcEntrustOrderService;
+ private final MemberWalletCoinDao memberWalletCoinDao;
private final MemberDao memberDao;
@@ -59,7 +61,7 @@
OtcMarketBussiness otcMb = new OtcMarketBussiness();
otcMb.setId(mbAddDto.getId());
- otcMb.setNikename(mbAddDto.getNickname());
+// otcMb.setNikename(mbAddDto.getNickname());
otcMarketBussinessService.updateById(otcMb);
return Result.ok("修改成功");
}
@@ -88,10 +90,18 @@
member = new MemberEntity();
member.setId(memberId);
- member.setName(mbAddDto.getNickname());
+// member.setName(mbAddDto.getNickname());
memberDao.updateById(member);
return Result.ok("修改成功");
}
+ @ApiOperation(value = "查询当前用户可用")
+ @GetMapping(value = "/memberWallet")
+ public Result memberWallet() {
+ MemberEntity member = LoginUserUtils.getAppLoginUser();
+ MemberWalletCoinEntity wallet = memberWalletCoinDao.selectWalletCoinBymIdAndCode(member.getId(), "USDT");
+ return Result.ok(wallet.getAvailableBalance());
+ }
+
}
--
Gitblit v1.9.1