| | |
| | | return resultObject; |
| | | }else { |
| | | //交易账户=>资金账户 |
| | | WalletExtend walletExtend = walletService.saveExtendByPara(partyId, currency); |
| | | resultObject.setData(walletExtend.getAmount()); |
| | | if("usdt".equals(currency)){ |
| | | resultObject.setData(walletService.saveWalletByPartyId(partyId).getMoney()); |
| | | }else { |
| | | WalletExtend walletExtend = walletService.saveExtendByPara(partyId, currency); |
| | | resultObject.setData(walletExtend.getAmount()); |
| | | } |
| | | return resultObject; |
| | | } |
| | | } |
| | |
| | | |
| | | ApplicationUtil.executeUpdate(walletGather); |
| | | redisHandler.setAsyn(WalletRedisKeys.WALLET_GATHER_PARTY_ID + walletGather.getPartyId().toString(),walletGather); |
| | | walletService.updateExtend(walletExtend.getPartyId().toString(), walletExtend.getWallettype(), -amount); |
| | | if("usdt".equals(currency)){ |
| | | walletService.update(walletGather.getPartyId().toString(),-amount); |
| | | }else { |
| | | walletService.updateExtend(walletExtend.getPartyId().toString(), walletExtend.getWallettype(), -amount); |
| | | } |
| | | resultObject.setMsg("划转成功"); |
| | | return resultObject; |
| | | } |
| | |
| | | } |
| | | ApplicationUtil.executeUpdate(walletGather); |
| | | redisHandler.setAsyn(WalletRedisKeys.WALLET_GATHER_PARTY_ID + walletGather.getPartyId().toString(),walletGather); |
| | | walletService.updateExtend(walletExtend.getPartyId().toString(), walletExtend.getWallettype(), amount); |
| | | if("usdt".equals(currency)){ |
| | | walletService.update(walletGather.getPartyId().toString(),amount); |
| | | }else { |
| | | walletService.updateExtend(walletExtend.getPartyId().toString(), walletExtend.getWallettype(), amount); |
| | | } |
| | | resultObject.setMsg("划转成功"); |
| | | return resultObject; |
| | | } |