ソースを参照

"内部未关联成交单查询"接口增加“交易用户ID”字段返回

zhou.xiaoning 3 年 前
コミット
8df342394b
4 ファイル変更14 行追加1 行削除
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 3 1
      models/ermcp8.go

+ 4 - 0
docs/docs.go

@@ -30915,6 +30915,10 @@ var doc = `{
                 "tradetradedate": {
                     "description": "成交交易日(yyyyMMdd)",
                     "type": "string"
+                },
+                "tradeuserid": {
+                    "description": "交易用户ID",
+                    "type": "integer"
                 }
             }
         },

+ 4 - 0
docs/swagger.json

@@ -30899,6 +30899,10 @@
                 "tradetradedate": {
                     "description": "成交交易日(yyyyMMdd)",
                     "type": "string"
+                },
+                "tradeuserid": {
+                    "description": "交易用户ID",
+                    "type": "integer"
                 }
             }
         },

+ 3 - 0
docs/swagger.yaml

@@ -11279,6 +11279,9 @@ definitions:
       tradetradedate:
         description: 成交交易日(yyyyMMdd)
         type: string
+      tradeuserid:
+        description: 交易用户ID
+        type: integer
     type: object
   models.Loginaccount:
     properties:

+ 3 - 1
models/ermcp8.go

@@ -814,6 +814,7 @@ type InternalUncorrelatedTradeDetail struct {
 	ACCOUNTNAME string  `json:"accountname" xorm:"ACCOUNTNAME" form:"accountname"` // 套期主体
 	ENABLEQTY   float64 `json:"enableqty" xorm:"ENABLEQTY"`                        // 项目可关联数量 = 套保品种数量 - 关联数量
 	EnumdicName string  `json:"enumdicname"  xorm:"ENUMDICNAME"`                   // 单位
+	TRADEUSERID int64   `json:"tradeuserid"  xorm:"TRADEUSERID"`                   // 交易用户ID
 
 	USERID    int64  `json:"-" form:"userid" binding:"required"`          // 用户编号
 	BEGINDATE string `json:"-" form:"begindate"`                          // 起始日期, 格式:yyyymmdd
@@ -845,7 +846,8 @@ func (r *InternalUncorrelatedTradeDetail) buildSql() string {
 		ta.accountname TAACCOUNTNAME,
 		ept.ACCOUNTID,
 		ept.CHANNELBUILDTYPE,
-		(ept.MIDDLEGOODSQTY - ept.RELATEDQTY) ENABLEQTY
+		(ept.MIDDLEGOODSQTY - ept.RELATEDQTY) ENABLEQTY,
+		ta.RELATEDUSERID TRADEUSERID
 	FROM ERMCP_PA_TRADELINK ept
 	LEFT JOIN goods g ON ept.goodsid = g.goodsid
 	LEFT JOIN taaccount ta ON ta.accountid = ept.accountid