Browse Source

/Report/QueryReportBankAccountOutInLog 接口增加出参

zhouxnsz 1 year ago
parent
commit
adb14e8dfe
5 changed files with 35 additions and 5 deletions
  1. 4 4
      controllers/guangzuan/tradeService.go
  2. 8 0
      docs/docs.go
  3. 8 0
      docs/swagger.json
  4. 10 0
      docs/swagger.yaml
  5. 5 1
      models/report.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]

+ 8 - 0
docs/docs.go

@@ -52675,10 +52675,18 @@ const docTemplate = `{
                     "description": "金额",
                     "type": "number"
                 },
+                "applystatus": {
+                    "description": "申请状态 - 1:待审核 2:待复审 3:初审拒绝 4:交易冻结中 5:交易解冻中 6:交易解冻扣款中 7:交易入金中 8:交易冻结/解冻/扣款中(银行发起出金时用) 9:银行出金中 10:银行入金中 11:成功 12:失败 13:银行审核中  14:账户服务入金失败; 15:账户服务解冻失败; 16:账户服务解冻扣款失败; 17:账户服务出金失败 18:复审通过 19:复审拒绝 20:提交审核,账户冻结中 21:审核拒绝,账户解冻中;22: 待审核,账户服务解冻回滚中; 23:待复审,账户服务解冻回滚中; 24: 审核通过,账户冻结金额检查中;25: 复审通过,账户冻结金额检查中;",
+                    "type": "integer"
+                },
                 "applystatusdisplay": {
                     "description": "申请状态",
                     "type": "string"
                 },
+                "executetype": {
+                    "description": "申请类型 - 1:出金 2:入金 3: 单边账调整:入金; 4:单边账调整:出金 5:外部母账户调整:入金 6:外部母账户调整:出金 7:外部子账户:入金 8:外部子账户:出金",
+                    "type": "integer"
+                },
                 "executetypedisplay": {
                     "description": "申请类型",
                     "type": "string"

+ 8 - 0
docs/swagger.json

@@ -52666,10 +52666,18 @@
                     "description": "金额",
                     "type": "number"
                 },
+                "applystatus": {
+                    "description": "申请状态 - 1:待审核 2:待复审 3:初审拒绝 4:交易冻结中 5:交易解冻中 6:交易解冻扣款中 7:交易入金中 8:交易冻结/解冻/扣款中(银行发起出金时用) 9:银行出金中 10:银行入金中 11:成功 12:失败 13:银行审核中  14:账户服务入金失败; 15:账户服务解冻失败; 16:账户服务解冻扣款失败; 17:账户服务出金失败 18:复审通过 19:复审拒绝 20:提交审核,账户冻结中 21:审核拒绝,账户解冻中;22: 待审核,账户服务解冻回滚中; 23:待复审,账户服务解冻回滚中; 24: 审核通过,账户冻结金额检查中;25: 复审通过,账户冻结金额检查中;",
+                    "type": "integer"
+                },
                 "applystatusdisplay": {
                     "description": "申请状态",
                     "type": "string"
                 },
+                "executetype": {
+                    "description": "申请类型 - 1:出金 2:入金 3: 单边账调整:入金; 4:单边账调整:出金 5:外部母账户调整:入金 6:外部母账户调整:出金 7:外部子账户:入金 8:外部子账户:出金",
+                    "type": "integer"
+                },
                 "executetypedisplay": {
                     "description": "申请类型",
                     "type": "string"

+ 10 - 0
docs/swagger.yaml

@@ -21557,9 +21557,19 @@ definitions:
       amount:
         description: 金额
         type: number
+      applystatus:
+        description: '申请状态 - 1:待审核 2:待复审 3:初审拒绝 4:交易冻结中 5:交易解冻中 6:交易解冻扣款中 7:交易入金中
+          8:交易冻结/解冻/扣款中(银行发起出金时用) 9:银行出金中 10:银行入金中 11:成功 12:失败 13:银行审核中  14:账户服务入金失败;
+          15:账户服务解冻失败; 16:账户服务解冻扣款失败; 17:账户服务出金失败 18:复审通过 19:复审拒绝 20:提交审核,账户冻结中 21:审核拒绝,账户解冻中;22:
+          待审核,账户服务解冻回滚中; 23:待复审,账户服务解冻回滚中; 24: 审核通过,账户冻结金额检查中;25: 复审通过,账户冻结金额检查中;'
+        type: integer
       applystatusdisplay:
         description: 申请状态
         type: string
+      executetype:
+        description: '申请类型 - 1:出金 2:入金 3: 单边账调整:入金; 4:单边账调整:出金 5:外部母账户调整:入金 6:外部母账户调整:出金
+          7:外部子账户:入金 8:外部子账户:出金'
+        type: integer
       executetypedisplay:
         description: 申请类型
         type: string

+ 5 - 1
models/report.go

@@ -203,6 +203,8 @@ type ReportBankAccountOutInLog struct {
 	Executetypedisplay string  `json:"executetypedisplay" xorm:"EXECUTETYPEDISPLAY"` // 申请类型
 	AMOUNT             float64 `json:"amount" xorm:"AMOUNT"`                         // 金额
 	Applystatusdisplay string  `json:"applystatusdisplay" xorm:"APPLYSTATUSDISPLAY"` // 申请状态
+	APPLYSTATUS        int32   `json:"applystatus" xorm:"APPLYSTATUS"`               // 申请状态 - 1:待审核 2:待复审 3:初审拒绝 4:交易冻结中 5:交易解冻中 6:交易解冻扣款中 7:交易入金中 8:交易冻结/解冻/扣款中(银行发起出金时用) 9:银行出金中 10:银行入金中 11:成功 12:失败 13:银行审核中  14:账户服务入金失败; 15:账户服务解冻失败; 16:账户服务解冻扣款失败; 17:账户服务出金失败 18:复审通过 19:复审拒绝 20:提交审核,账户冻结中 21:审核拒绝,账户解冻中;22: 待审核,账户服务解冻回滚中; 23:待复审,账户服务解冻回滚中; 24: 审核通过,账户冻结金额检查中;25: 复审通过,账户冻结金额检查中;
+	EXECUTETYPE        int32   `json:"executetype" xorm:"EXECUTETYPE"`               // 申请类型 - 1:出金 2:入金 3: 单边账调整:入金; 4:单边账调整:出金 5:外部母账户调整:入金 6:外部母账户调整:出金 7:外部子账户:入金 8:外部子账户:出金
 
 	AccountId  int64  `form:"accountid" binding:"required"`  // 资金账户
 	Tradedate  string `form:"tradedate" binding:"required"`  // 查询日期 日报表-yyyyMMdd 月报表-yyyyMM
@@ -221,7 +223,9 @@ func (r *ReportBankAccountOutInLog) buildSql() string {
 		to_char(t.UPDATETIME, 'yyyy-mm-dd hh24:mi:ss') UPDATETIME,
 		en1.enumdicname EXECUTETYPEDISPLAY,
 		t.AMOUNT,
-		en2.enumdicname APPLYSTATUSDISPLAY
+		en2.enumdicname APPLYSTATUSDISPLAY,
+		t.executetype,
+		t.applystatus
 	from Bank_AccountOutInApply t
 	left join enumdicitem en1
 		on en1.enumdiccode = 'executetype'