新版仿ok交易所-后端
1
zj
2026-03-11 75c2cb06b27b8812427f16c8657dc2eb9b4d09e5
trading-order-bean/src/main/java/com/yami/trading/bean/contract/dto/ContractOrderDTO.java
@@ -173,6 +173,11 @@
    */
   private String forceClosePrice;
   /**
    * 盈亏比
    */
   private Double profitLossRatio;
   public BigDecimal getProfitLoss() {
      if("submitted".equalsIgnoreCase(state)){
         return amountClose.add(profit).add(deposit).subtract(depositOpen).setScale(4, BigDecimal.ROUND_HALF_UP);