Prechádzať zdrojové kódy

查待付款单据增加payflag过滤条件

zou.yingbin 4 rokov pred
rodič
commit
1b42647616
5 zmenil súbory, kde vykonal 20 pridanie a 1 odobranie
  1. 3 1
      controllers/qhj/qryQhj.go
  2. 6 0
      docs/docs.go
  3. 6 0
      docs/swagger.json
  4. 4 0
      docs/swagger.yaml
  5. 1 0
      models/qhj.go

+ 3 - 1
controllers/qhj/qryQhj.go

@@ -353,6 +353,7 @@ func QueryAccountInOutApply(c *gin.Context) {
 // @Security ApiKeyAuth
 // @Param accountid query int true "资金账号id"
 // @Param tradeid query int false "成交单号"
+// @Param payflag query int false "付款标识 - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止"
 // @Success 200 {array} models.QhjPayOrder
 // @Failure 500 {object} app.Response
 // @Router /Qhj/QueryPayOrder [get]
@@ -362,9 +363,10 @@ func QueryPayOrder(c *gin.Context) {
 	req := struct {
 		ACCOUNTID int64  `form:"accountid" binding:"required"` // 用户id
 		TRADEID   string `form:"tradeid"`                      // 成交单号
+		PAYFLAG   int32  `form:"payflag"`                      // 付款标识
 	}{}
 	a.DoBindReq(&req)
-	m := models.QhjPayOrder{BUYACCOUNTID: req.ACCOUNTID, TRADEID: req.TRADEID}
+	m := models.QhjPayOrder{BUYACCOUNTID: req.ACCOUNTID, TRADEID: req.TRADEID, PAYFLAG: req.PAYFLAG}
 	a.DoGetDataI(&m)
 }
 

+ 6 - 0
docs/docs.go

@@ -7434,6 +7434,12 @@ var doc = `{
                         "description": "成交单号",
                         "name": "tradeid",
                         "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "付款标识 - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止",
+                        "name": "payflag",
+                        "in": "query"
                     }
                 ],
                 "responses": {

+ 6 - 0
docs/swagger.json

@@ -7418,6 +7418,12 @@
                         "description": "成交单号",
                         "name": "tradeid",
                         "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "付款标识 - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止",
+                        "name": "payflag",
+                        "in": "query"
                     }
                 ],
                 "responses": {

+ 4 - 0
docs/swagger.yaml

@@ -18050,6 +18050,10 @@ paths:
         in: query
         name: tradeid
         type: integer
+      - description: 付款标识 - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止
+        in: query
+        name: payflag
+        type: integer
       produces:
       - application/json
       responses:

+ 1 - 0
models/qhj.go

@@ -1426,6 +1426,7 @@ func (r *QhjPayOrder) buildSql() string {
 		" WHERE 1 = 1"
 	sqlId.AndEx("t.BUYACCOUNTID", r.BUYACCOUNTID, r.BUYACCOUNTID > 0)
 	sqlId.AndEx("t.TRADEID", r.TRADEID, len(r.TRADEID) > 0)
+	sqlId.AndEx("t.PAYFLAG", r.PAYFLAG, r.PAYFLAG > 0)
 	return sqlId.String()
 }