新版仿ok交易所-后端
zj
2025-12-04 f8c613d0d7619001860f3ec7883fe86398c59ce0
新增后台资金账户扣款
1 files modified
10 ■■■■■ changed files
trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java 10 ●●●●● patch | view | raw | blame | history
trading-order-service/src/main/java/com/yami/trading/service/impl/UserServiceImpl.java
@@ -870,7 +870,15 @@
        if(coinType.equals("usdt")){
            walletService.updateMoney("", userId, moneyRevise, new BigDecimal(0), Constants.MONEYLOG_CATEGORY_COIN
                    , coinType, accountType == 1 ? Constants.MONEYLOG_CONTENT_RECHARGE : Constants.MONEYLOG_CONTENT_WITHDRAW, "后台修改账号余额");
        } else {
        } else if(coinType.equals("capitaltwallet")){
            CapitaltWallet capitaltWallet = capitaltWalletMapper.selectOne(new LambdaQueryWrapper<>(CapitaltWallet.class)
                    .eq(CapitaltWallet::getUserId, userId).last(" limit 1 "));
            capitaltWallet.setMoney(capitaltWallet.getMoney().add(moneyRevise));
            if (capitaltWallet.getMoney().doubleValue() <= 0) {
                throw new YamiShopBindException("余额不足");
            }
            capitaltWalletMapper.updateById(capitaltWallet);
        }else {
            coinType = coinType+"usdt";
            WalletExtend walletExtend = new WalletExtend();
            walletExtend = walletService.saveExtendByPara(user.getUserId(), coinType);