Helius
2020-08-03 76a61449b942bc20f03c8e45daca0fb85bb1b1ac
modify
1 files modified
2 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/documentary/service/impl/FollowOrderOperationServiceImpl.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/service/impl/FollowOrderOperationServiceImpl.java
@@ -100,6 +100,7 @@
                    symbolCnt = followerSetting.getFollowCnt() * holdOrderEntity.getSymbolCnt();
                }
                if (followerSetting.getMaxFollowCnt() != null && followerSetting.getMaxFollowCnt() !=0) {
                // 若张数+当前持仓张数大于最大持仓张数,则取最大持仓减去当前持仓,若差值小于等于0,则不下单
                if (symbolCnt + holdingCnt> followerSetting.getMaxFollowCnt()) {
                    symbolCnt = followerSetting.getMaxFollowCnt() - holdingCnt;
@@ -108,6 +109,7 @@
                if (symbolCnt <= 0) {
                    continue;
                }
                }
                MemberWalletContractEntity walletContract = memberWalletContractDao.findWalletContractByMemberIdAndSymbol(followerSetting.getMemberId(), CoinTypeEnum.USDT.name());
                if (walletContract == null) {