新版仿ok交易所-后端
yml
zyy
2025-08-27 f2719054e930c5a2d87676f089c562bcac35b85e
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);