Helius
2020-08-10 49064737e243beff4fa6b26e76e05d14471d3f43
modify
2 files modified
5 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/documentary/common/NoticeConstant.java 4 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/service/impl/FollowOrderOperationServiceImpl.java 1 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/common/NoticeConstant.java
@@ -22,4 +22,8 @@
    public static final String STOP_FOLLOW_CONTENT = "您已被交易员{}移除,已停止跟随此交易员下单";
    public static final String MONEY_NOT_ENOUGH_TITLE = "跟单-金额不足";
    public static final String MONEY_NOT_ENOUGH_CONTENT = "金额不足未能跟随交易员{}开仓";
}
src/main/java/com/xcong/excoin/modules/documentary/service/impl/FollowOrderOperationServiceImpl.java
@@ -151,6 +151,7 @@
                BigDecimal prePaymentAmount = bondAmount.add(openFeePrice).add(openFeePrice);
                if (prePaymentAmount.compareTo(walletContract.getAvailableBalance()) > -1) {
                    log.info("可用金额不足");
                    LogRecordUtils.insertFollowerNotice(followerSetting.getMemberId(), NoticeConstant.MONEY_NOT_ENOUGH_TITLE, StrUtil.format(NoticeConstant.MONEY_NOT_ENOUGH_CONTENT, followTraderInfoEntity.getNickname()));
                    continue;
                }