From ded93a205fc7176b98c24c6e56ad76e9db998b02 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Fri, 10 Jul 2020 11:40:11 +0800 Subject: [PATCH] modify --- src/main/java/com/xcong/excoin/utils/CalculateUtil.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/xcong/excoin/utils/CalculateUtil.java b/src/main/java/com/xcong/excoin/utils/CalculateUtil.java index c0a3202..730ebbd 100644 --- a/src/main/java/com/xcong/excoin/utils/CalculateUtil.java +++ b/src/main/java/com/xcong/excoin/utils/CalculateUtil.java @@ -3,12 +3,14 @@ import com.xcong.excoin.modules.member.entity.MemberEntity; import com.xcong.excoin.modules.platform.entity.PlatformTradeSettingEntity; +import lombok.extern.slf4j.Slf4j; import java.math.BigDecimal; /** * @author helius */ +@Slf4j public class CalculateUtil { /** @@ -30,13 +32,13 @@ //卖空 if (type == 2) { forcePrice = money.add(openPrice); - if (member.getIsProfit() == 1) { + if (member.getIsForce() == 1) { //预估强平价 = 预估强平价-预估强平价*系数 forcePrice = forcePrice.subtract(forcePrice.multiply(tradeSetting.getForceParam())); } } else {//开多 forcePrice = openPrice.subtract(money); - if (member.getIsProfit() == 1) { + if (member.getIsForce() == 1) { //预估强平价 = 预估强平价-预估强平价*系数 forcePrice = forcePrice.add(forcePrice.multiply(tradeSetting.getForceParam())); } -- Gitblit v1.9.1