Quellcode durchsuchen

/WrTrade2/QueryWrDraftUserInfo:返回添加”modifystatus“

deng.yinping vor 3 Wochen
Ursprung
Commit
14b54fe0aa
4 geänderte Dateien mit 23 neuen und 9 gelöschten Zeilen
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 12 9
      models/wrTrade2.go

+ 4 - 0
docs/docs.go

@@ -62443,6 +62443,10 @@ const docTemplate = `{
                     "description": "修改时间",
                     "type": "string"
                 },
+                "modifystatus": {
+                    "description": "变更状态(枚举'modifystatus')",
+                    "type": "integer"
+                },
                 "needinvoice": {
                     "description": "是否需要发票 - 0:不需要 1:需要",
                     "type": "integer"

+ 4 - 0
docs/swagger.json

@@ -62435,6 +62435,10 @@
                     "description": "修改时间",
                     "type": "string"
                 },
+                "modifystatus": {
+                    "description": "变更状态(枚举'modifystatus')",
+                    "type": "integer"
+                },
                 "needinvoice": {
                     "description": "是否需要发票 - 0:不需要 1:需要",
                     "type": "integer"

+ 3 - 0
docs/swagger.yaml

@@ -27956,6 +27956,9 @@ definitions:
       modifiertime:
         description: 修改时间
         type: string
+      modifystatus:
+        description: 变更状态(枚举'modifystatus')
+        type: integer
       needinvoice:
         description: 是否需要发票 - 0:不需要 1:需要
         type: integer

+ 12 - 9
models/wrTrade2.go

@@ -5054,6 +5054,7 @@ type WrDraftUserInfo struct {
 	CREDITQUOTA              float64 `json:"creditquota"  xorm:"CREDITQUOTA"`                           // 授信额度(金瑞)
 
 	Bankbankname string `json:"bankbankname"  xorm:"BANKBANKNAME"` // 银行名称
+	MODIFYSTATUS int32  `json:"modifystatus"  xorm:"MODIFYSTATUS"` // 变更状态(枚举'modifystatus')
 }
 
 func (r *WrDraftUserInfo) calc() {
@@ -5069,15 +5070,17 @@ func (r *WrDraftUserInfo) calc() {
 
 func (r *WrDraftUserInfo) buildSql() string {
 	var sqlId utils.SQLVal = `
-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.*,
-	   b.bankname BANKBANKNAME
-  FROM DRAFT_USERINFO t
-  LEFT JOIN bank_bankinfo b on b.bankid = t.bankid
- WHERE 1 = 1
-`
+		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.*,
+		b.bankname BANKBANKNAME,
+		ua.modifystatus MODIFYSTATUS
+		FROM DRAFT_USERINFO t
+		LEFT JOIN bank_bankinfo b on b.bankid = t.bankid
+		LEFT JOIN useraccount ua on ua.userid = t.userid
+		WHERE 1 = 1
+	`
 	sqlId.And("t.userid", r.USERID)
 	sqlId.AndEx("t.userstatus", r.USERSTATUS, r.USERSTATUS != 0)
 	return sqlId.String()