Explorar el Código

/Order/QueryTradeHolderDetail 接口增加 tpslflag 出参

muchinfo hace 3 semanas
padre
commit
c78e545c17
Se han modificado 4 ficheros con 16 adiciones y 1 borrados
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 5 1
      models/tradexx.go

+ 4 - 0
docs/docs.go

@@ -59937,6 +59937,10 @@ const docTemplate = `{
                     "description": "止盈价格(10按账户风控)",
                     "type": "string"
                 },
+                "tpslflag": {
+                    "description": "是否开启止盈止损 - 0:不开启 1:开启(10 按单风控)",
+                    "type": "integer"
+                },
                 "tradeamount": {
                     "description": "成交金额",
                     "type": "number"

+ 4 - 0
docs/swagger.json

@@ -59928,6 +59928,10 @@
                     "description": "止盈价格(10按账户风控)",
                     "type": "string"
                 },
+                "tpslflag": {
+                    "description": "是否开启止盈止损 - 0:不开启 1:开启(10 按单风控)",
+                    "type": "integer"
+                },
                 "tradeamount": {
                     "description": "成交金额",
                     "type": "number"

+ 3 - 0
docs/swagger.yaml

@@ -26030,6 +26030,9 @@ definitions:
       tpsl_tpprice:
         description: 止盈价格(10按账户风控)
         type: string
+      tpslflag:
+        description: 是否开启止盈止损 - 0:不开启 1:开启(10 按单风控)
+        type: integer
       tradeamount:
         description: 成交金额
         type: number

+ 5 - 1
models/tradexx.go

@@ -218,6 +218,8 @@ type TradeHolderDetail struct {
 	FtMarketIDs     string `json:"-" form:"marketids"`                                            // 市场id, 逗号隔开
 	RISKCONTROLMODE int32  `json:"riskcontrolmode" form:"riskcontrolmode" xorm:"RISKCONTROLMODE"` // 风控方式(52模式) 1:按单风控 2:按账户风控
 
+	TPSLFLAG int32 `json:"tpslflag" xorm:"TPSLFLAG"` // 是否开启止盈止损 - 0:不开启 1:开启(10 按单风控)
+
 	TPSL_TPFLAG         int32  `json:"tpsl_tpflag" xorm:"TPFLAG"`                 // 止盈标识 - 0:未设置 1:已设置(10按账户风控)
 	TPSL_TPPRICE        string `json:"tpsl_tpprice" xorm:"TPPRICE"`               // 止盈价格(10按账户风控)
 	TPSL_SLFLAG         int32  `json:"tpsl_slflag" xorm:"SLFLAG"`                 // 止损标识 - 0:未设置 1:已设置(10按账户风控)
@@ -254,8 +256,10 @@ with gtmp as
          e2.enumdicname currencyname,
          m.marketname,
          m.trademode,
-		 m.riskcontrolmode
+		 m.riskcontrolmode,
+		 gx.tpslflag
     from goods g
+	left join goodsex gx on g.goodsid = gx.goodsid
     left join enumdicitem e
       on g.goodunitid = e.enumitemname
      and e.enumdiccode = 'goodsunit'