新版仿ok交易所-后端
zyy
2026-01-19 2cf8b2bd062983498b90d0835f939ae03110896e
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);