zhou.xiaoning il y a 2 ans
Parent
commit
9ddddb0979

+ 4 - 4
controllers/guangzuan/tradeService.go

@@ -18,8 +18,8 @@ import (
 // @Security Group
 // @Param    userid   query    int    true  "用户ID"
 // @Param    executestatus query    int false "执行状态 - 1:未生效 2:进行中 3:已结束"
-// @Param    page          query    int false "页码"
-// @Param    pagesize      query    int false "每页条数"
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
 // @Success  200           {array}  models.GzcjjcorderM
 // @Failure  500     {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
@@ -39,8 +39,8 @@ func QueryGZCJJCOrder(c *gin.Context) {
 // @Security Group
 // @Param    userid        query    int true  "用户ID"
 // @Param    orderid  query    string false "单据ID"
-// @Param    page     query    int    false "页码"
-// @Param    pagesize query    int    false "每页条数"
+// @Param    page          query    int false "页码"
+// @Param    pagesize      query    int false "每页条数"
 // @Success  200      {array}  models.GzcjjcorderdetailM
 // @Failure  500           {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]

+ 1 - 0
controllers/sbyj/order.go

@@ -111,6 +111,7 @@ func QueryMyDeliveryofflineoperatelog(c *gin.Context) {
 // @Param    accountid query    int    true  "资金账户"
 // @Param    tradedate query    string false "交易日(yyyyMMdd)"
 // @Param    goodsid   query    int    false "商品ID"
+// @Param    holderqty query    int    false "持仓数量"
 // @Param    page            query    int    false "页码"
 // @Param    pagesize        query    int    false "每页条数"
 // @Success  200       {array}  models.Tradeholderdetailex

+ 6 - 0
docs/docs.go

@@ -22452,6 +22452,12 @@ const docTemplate = `{
                     },
                     {
                         "type": "integer",
+                        "description": "持仓数量",
+                        "name": "holderqty",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
                         "description": "页码",
                         "name": "page",
                         "in": "query"

+ 6 - 0
docs/swagger.json

@@ -22443,6 +22443,12 @@
                     },
                     {
                         "type": "integer",
+                        "description": "持仓数量",
+                        "name": "holderqty",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
                         "description": "页码",
                         "name": "page",
                         "in": "query"

+ 4 - 0
docs/swagger.yaml

@@ -44520,6 +44520,10 @@ paths:
         in: query
         name: goodsid
         type: integer
+      - description: 持仓数量
+        in: query
+        name: holderqty
+        type: integer
       - description: 页码
         in: query
         name: page

+ 2 - 1
models/sbyj.go

@@ -475,7 +475,7 @@ type Tradeholderdetailex struct {
 	OPENQTY           int64   `json:"openqty" xorm:"OPENQTY"`                                         // 建仓数量
 	TRADEAMOUNT       float64 `json:"tradeamount" xorm:"TRADEAMOUNT"`                                 // 成交金额
 	OPENPRICE         float64 `json:"openprice" xorm:"OPENPRICE"`                                     // 建仓价格
-	HOLDERQTY         int64   `json:"holderqty" xorm:"HOLDERQTY"`                                     // 持仓数量
+	HOLDERQTY         int64   `json:"holderqty" xorm:"HOLDERQTY" form:"holderqty"`                    // 持仓数量
 	HOLDERAMOUNT      float64 `json:"holderamount" xorm:"HOLDERAMOUNT"`                               // 持仓金额
 	HOLDERPRICE       float64 `json:"holderprice" xorm:"HOLDERPRICE"`                                 // 持仓价格
 	FREEZEQTY         int64   `json:"freezeqty" xorm:"FREEZEQTY"`                                     // 冻结数量
@@ -577,6 +577,7 @@ func (r *Tradeholderdetailex) buildSql() string {
 	sqlId.And("t.accountid", r.ACCOUNTID)
 	sqlId.AndEx("t.tradedate", r.TRADEDATE, r.TRADEDATE != "")
 	sqlId.AndEx("t.goodsid", r.GOODSID, r.GOODSID > 0)
+	sqlId.AndEx("t.holderqty", r.HOLDERQTY, r.HOLDERQTY > 0)
 	sqlId.OrderByDesc("t.tradetime")
 
 	sqlId.Page(r.Page, r.PageSize)

+ 0 - 1
services/tencent/essapi/CreateConsoleLoginUrl.go

@@ -28,5 +28,4 @@ func CreateConsoleLoginUrl(agent *essbasic.Agent, proxyOrganizationName string)
 	}
 
 	return
-
 }