| | |
| | | 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); |