From a2db1a0d4f90fdab5e39d3d13a9cc7a4774356df Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 05 Feb 2021 15:42:37 +0800 Subject: [PATCH] Merge branch 'whole_new' of https://gitee.com/chonggaoxiao/new_excoin into whole_new --- src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java b/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java index 07dea96..658e0b7 100644 --- a/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java +++ b/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java @@ -201,18 +201,17 @@ walletContractSimulate.setWalletCode(CoinTypeEnum.USDT.name()); memberWalletContractSimulateDao.insert(walletContractSimulate); + //初始化合约钱包 + MemberWalletContractEntity walletContract = new MemberWalletContractEntity(); + walletContract.setMemberId(member.getId()); + walletContract.setAvailableBalance(AppContants.INIT_MONEY); + walletContract.setFrozenBalance(AppContants.INIT_MONEY); + walletContract.setTotalBalance(AppContants.INIT_MONEY); + walletContract.setBorrowedFund(AppContants.INIT_MONEY); + walletContract.setWalletCode(CoinTypeEnum.USDT.name()); + memberWalletContractDao.insert(walletContract); for (CoinTypeEnum coinTypeEnum : CoinTypeEnum.values()) { - //初始化合约钱包 - MemberWalletContractEntity walletContract = new MemberWalletContractEntity(); - walletContract.setMemberId(member.getId()); - walletContract.setAvailableBalance(AppContants.INIT_MONEY); - walletContract.setFrozenBalance(AppContants.INIT_MONEY); - walletContract.setTotalBalance(AppContants.INIT_MONEY); - walletContract.setBorrowedFund(AppContants.INIT_MONEY); - walletContract.setWalletCode(coinTypeEnum.name()); - memberWalletContractDao.insert(walletContract); - // 初始化币币钱包 MemberWalletCoinEntity walletCoin = new MemberWalletCoinEntity(); walletCoin.setWalletCode(coinTypeEnum.name()); -- Gitblit v1.9.1