Browse Source

接口 WrTrade2/QueryWrDraftUserInfo 增加银行名称出参

zhouxnsz 1 năm trước cách đây
mục cha
commit
5d0abc76c9
5 tập tin đã thay đổi với 20 bổ sung5 xóa
  1. 4 4
      controllers/guangzuan/tradeService.go
  2. 4 0
      docs/docs.go
  3. 4 0
      docs/swagger.json
  4. 3 0
      docs/swagger.yaml
  5. 5 1
      models/wrTrade2.go

+ 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]

+ 4 - 0
docs/docs.go

@@ -59466,6 +59466,10 @@ const docTemplate = `{
                     "description": "收款人名称",
                     "type": "string"
                 },
+                "bankbankname": {
+                    "description": "银行名称",
+                    "type": "string"
+                },
                 "bankcardfrontphotourl": {
                     "description": "银行卡正面照地址",
                     "type": "string"

+ 4 - 0
docs/swagger.json

@@ -59457,6 +59457,10 @@
                     "description": "收款人名称",
                     "type": "string"
                 },
+                "bankbankname": {
+                    "description": "银行名称",
+                    "type": "string"
+                },
                 "bankcardfrontphotourl": {
                     "description": "银行卡正面照地址",
                     "type": "string"

+ 3 - 0
docs/swagger.yaml

@@ -26511,6 +26511,9 @@ definitions:
       bankaccountname:
         description: 收款人名称
         type: string
+      bankbankname:
+        description: 银行名称
+        type: string
       bankcardfrontphotourl:
         description: 银行卡正面照地址
         type: string

+ 5 - 1
models/wrTrade2.go

@@ -5010,6 +5010,8 @@ type WrDraftUserInfo struct {
 	TAXPAYERNUM              string  `json:"taxpayernum"  xorm:"TAXPAYERNUM"`                           // 纳税人识别号
 	BIRTHDAY                 string  `json:"birthday"  xorm:"BIRTHDAY2"`                                // 生日(个人:年月日)
 	CREDITQUOTA              float64 `json:"creditquota"  xorm:"CREDITQUOTA"`                           // 授信额度(金瑞)
+
+	Bankbankname string `json:"bankbankname"  xorm:"BANKBANKNAME"` // 银行名称
 }
 
 func (r *WrDraftUserInfo) calc() {
@@ -5028,8 +5030,10 @@ func (r *WrDraftUserInfo) buildSql() string {
 SELECT to_char(t.BIRTHDAY, 'yyyy-mm-dd hh24:mi:ss') BIRTHDAY2,
        to_char(t.CREATETIME, 'yyyy-mm-dd hh24:mi:ss') CREATETIME2,
        to_char(t.MODIFIERTIME, 'yyyy-mm-dd hh24:mi:ss') MODIFIERTIME2,
-       t.*
+       t.*,
+	   b.bankname BANKBANKNAME
   FROM DRAFT_USERINFO t
+  LEFT JOIN bank_bankinfo b on b.bankid = t.bankid
  WHERE 1 = 1
 `
 	sqlId.And("t.userid", r.USERID)