From 32b62acd2cee84b0d7e2c80ab4528c65c24f5ce8 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 13 Jul 2020 11:49:14 +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