Explorar o código

修改“QueryRecieptOrder”接口

Zhou Xiaoning %!s(int64=5) %!d(string=hai) anos
pai
achega
71da1b02f9
Modificáronse 4 ficheiros con 1 adicións e 22 borrados
  1. 1 3
      controllers/szdz/szdz.go
  2. 0 7
      docs/docs.go
  3. 0 7
      docs/swagger.json
  4. 0 5
      docs/swagger.yaml

+ 1 - 3
controllers/szdz/szdz.go

@@ -12,7 +12,6 @@ import (
 
 // QueryRecieptOrderReq 点选挂牌委托单据查询参数
 type QueryRecieptOrderReq struct {
-	BuyOrSell   int    `form:"buyOrSell"`                  // 买卖方向,必填
 	GoodsID     int    `form:"goodsID" binding:"required"` // 商品ID,必填
 	AccountName string `form:"accountName"`                // 所属账户名称
 	MarketID    int    `form:"marketID"`                   // 市场ID
@@ -35,7 +34,6 @@ type QueryRecieptOrderRsp struct {
 // @Summary 点选挂牌委托单据查询(摘牌大厅)
 // @Produce json
 // @Security ApiKeyAuth
-// @Param buyOrSell query int true "买卖方向 - 0:买 1:卖"
 // @Param goodsID query int true "商品ID"
 // @Param accountName query string false "所属账户名称"
 // @Param marketID query int false "市场ID"
@@ -66,7 +64,7 @@ func QueryRecieptOrder(c *gin.Context) {
 				TRADE_ORDERDETAIL.BUYORSELL, TRADE_ORDERDETAIL.ORDERID, TRADE_ORDERDETAIL.TRADEDATE, TRADE_ORDERDETAIL.ORDERPRICE, 
 				TRADE_ORDERDETAIL.ORDERQTY - TRADE_ORDERDETAIL.TRADEQTY - TRADE_ORDERDETAIL.CANCELQTY as ENABLEQTY, 
 				substr(USERACCOUNT.ACCOUNTNAME,0,1)||'****' as ACCOUNTNAME`).
-		Where("TRADE_ORDERDETAIL.ORDERSTATUS in (3,7,12) and TRADE_ORDERDETAIL.BUYORSELL = ? and GOODS.GOODSID = ?", req.BuyOrSell, req.GoodsID)
+		Where("TRADE_ORDERDETAIL.ORDERSTATUS in (3,7,12) and GOODS.GOODSID = ?", req.GoodsID)
 	if len(req.AccountName) > 0 {
 		s = s.And("USERACCOUNT.ACCOUNTNAME = ?", req.AccountName)
 	}

+ 0 - 7
docs/docs.go

@@ -677,13 +677,6 @@ var doc = `{
                 "parameters": [
                     {
                         "type": "integer",
-                        "description": "买卖方向",
-                        "name": "buyOrSell",
-                        "in": "query",
-                        "required": true
-                    },
-                    {
-                        "type": "integer",
                         "description": "商品ID",
                         "name": "goodsID",
                         "in": "query",

+ 0 - 7
docs/swagger.json

@@ -661,13 +661,6 @@
                 "parameters": [
                     {
                         "type": "integer",
-                        "description": "买卖方向",
-                        "name": "buyOrSell",
-                        "in": "query",
-                        "required": true
-                    },
-                    {
-                        "type": "integer",
                         "description": "商品ID",
                         "name": "goodsID",
                         "in": "query",

+ 0 - 5
docs/swagger.yaml

@@ -1741,11 +1741,6 @@ paths:
   /SZDZ/QueryRecieptOrder:
     get:
       parameters:
-      - description: 买卖方向
-        in: query
-        name: buyOrSell
-        required: true
-        type: integer
       - description: 商品ID
         in: query
         name: goodsID