Browse Source

/Qhj/QueryBankAccountSign
查询签约银行信息(提现账户管理) 增加托管银行名称出参

zhou.xiaoning 3 years ago
parent
commit
78501d96e2
6 changed files with 26 additions and 11 deletions
  1. 6 6
      config/config.xml
  2. 4 4
      controllers/guangzuan/tradeService.go
  3. 4 0
      docs/docs.go
  4. 4 0
      docs/swagger.json
  5. 3 0
      docs/swagger.yaml
  6. 5 1
      models/qhj.go

+ 6 - 6
config/config.xml

@@ -13,11 +13,11 @@
     <DbAddress value="192.168.31.88"/>
     <DbAddress value="192.168.31.88"/>
     <DbName value="orcl"/>
     <DbName value="orcl"/>
     <DbPort value="1521"/>
     <DbPort value="1521"/>
-    <DbUser value="mtp2_test167"/>
+    <DbUser value="mtp2_test201"/>
     <DbPwd value="muchinfo"/>
     <DbPwd value="muchinfo"/>
   </DbSetting>
   </DbSetting>
   <RedisSetting>
   <RedisSetting>
-    <Address value="192.168.31.167"/>
+    <Address value="192.168.31.201"/>
     <Port value="5007"/>
     <Port value="5007"/>
     <Timeout value="3"/>
     <Timeout value="3"/>
     <ConnNum value="1"/>
     <ConnNum value="1"/>
@@ -25,11 +25,11 @@
     <Pwd value=""/>
     <Pwd value=""/>
   </RedisSetting>
   </RedisSetting>
   <MqSetting>
   <MqSetting>
-    <Url value="amqp://guest:guest@192.168.31.167:5020/test"/>
+    <Url value="amqp://guest:guest@192.168.31.201:5020/test"/>
     <Exchange value="entry"/>
     <Exchange value="entry"/>
   </MqSetting>
   </MqSetting>
   <MongoDBSetting>
   <MongoDBSetting>
-    <HostName value="192.168.31.167"/>
+    <HostName value="192.168.31.201"/>
     <Port value="5025"/>
     <Port value="5025"/>
     <DBName value="HistoryQuote"/>
     <DBName value="HistoryQuote"/>
     <Username value="quote_test01"/>
     <Username value="quote_test01"/>
@@ -38,8 +38,8 @@
   <MySQLSetting>
   <MySQLSetting>
     <Host value="192.168.30.72"/>
     <Host value="192.168.30.72"/>
     <Port value="3306"/>
     <Port value="3306"/>
-    <DBName value="historyquote_test167"/>
-    <Username value="quote_test167"/>
+    <DBName value="historyquote_test201"/>
+    <Username value="quote_test201"/>
     <Password value="123456"/>
     <Password value="123456"/>
   </MySQLSetting>
   </MySQLSetting>
 </Configuration>
 </Configuration>

+ 4 - 4
controllers/guangzuan/tradeService.go

@@ -18,8 +18,8 @@ import (
 // @Security Group
 // @Security Group
 // @Param    userid   query    int    true  "用户ID"
 // @Param    userid   query    int    true  "用户ID"
 // @Param    executestatus query    int false "执行状态 - 1:未生效 2:进行中 3:已结束"
 // @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
 // @Success  200           {array}  models.GzcjjcorderM
 // @Failure  500     {object} app.Response
 // @Failure  500     {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
@@ -39,8 +39,8 @@ func QueryGZCJJCOrder(c *gin.Context) {
 // @Security Group
 // @Security Group
 // @Param    userid        query    int true  "用户ID"
 // @Param    userid        query    int true  "用户ID"
 // @Param    orderid  query    string false "单据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
 // @Success  200      {array}  models.GzcjjcorderdetailM
 // @Failure  500           {object} app.Response
 // @Failure  500           {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]

+ 4 - 0
docs/docs.go

@@ -39120,6 +39120,10 @@ const docTemplate = `{
                     "description": "托管银行编号",
                     "description": "托管银行编号",
                     "type": "string"
                     "type": "string"
                 },
                 },
+                "cusbankname": {
+                    "description": "托管银行名称",
+                    "type": "string"
+                },
                 "direct": {
                 "direct": {
                     "description": "方向(可以判断那方先发起的签约)",
                     "description": "方向(可以判断那方先发起的签约)",
                     "type": "integer"
                     "type": "integer"

+ 4 - 0
docs/swagger.json

@@ -39111,6 +39111,10 @@
                     "description": "托管银行编号",
                     "description": "托管银行编号",
                     "type": "string"
                     "type": "string"
                 },
                 },
+                "cusbankname": {
+                    "description": "托管银行名称",
+                    "type": "string"
+                },
                 "direct": {
                 "direct": {
                     "description": "方向(可以判断那方先发起的签约)",
                     "description": "方向(可以判断那方先发起的签约)",
                     "type": "integer"
                     "type": "integer"

+ 3 - 0
docs/swagger.yaml

@@ -14796,6 +14796,9 @@ definitions:
       cusbankid:
       cusbankid:
         description: 托管银行编号
         description: 托管银行编号
         type: string
         type: string
+      cusbankname:
+        description: 托管银行名称
+        type: string
       direct:
       direct:
         description: 方向(可以判断那方先发起的签约)
         description: 方向(可以判断那方先发起的签约)
         type: integer
         type: integer

+ 5 - 1
models/qhj.go

@@ -883,6 +883,8 @@ type QhjBankAccountSign struct {
 	RELATEDUSERID    int64  `json:"relateduserid"  xorm:"'RELATEDUSERID'"`     // 关联使用者userid
 	RELATEDUSERID    int64  `json:"relateduserid"  xorm:"'RELATEDUSERID'"`     // 关联使用者userid
 	BANKNAME         string `json:"bankname"  xorm:"'BANKNAME'"`               // 签约银行名称
 	BANKNAME         string `json:"bankname"  xorm:"'BANKNAME'"`               // 签约银行名称
 
 
+	CUSBANKNAME string `json:"cusbankname"  xorm:"CUSBANKNAME"` // 托管银行名称
+
 	ACCOUNTNAME2     string `json:"accountname2"`     // 资金账号对应的账号名(UserName) - 密文
 	ACCOUNTNAME2     string `json:"accountname2"`     // 资金账号对应的账号名(UserName) - 密文
 	BANKACCOUNTNAME2 string `json:"bankaccountname2"` // 签约银行卡账号名 - 密文
 	BANKACCOUNTNAME2 string `json:"bankaccountname2"` // 签约银行卡账号名 - 密文
 	CARDNO2          string `json:"cardno2"`          // 证件号码 - 密文
 	CARDNO2          string `json:"cardno2"`          // 证件号码 - 密文
@@ -935,11 +937,13 @@ func (r *QhjBankAccountSign) buildSql() string {
 		"       t.APPLYEXCHTICKET," +
 		"       t.APPLYEXCHTICKET," +
 		"       ta.accountid," +
 		"       ta.accountid," +
 		"       ta.relateduserid," +
 		"       ta.relateduserid," +
-		"       b.bankname" +
+		"       b.bankname," +
+		"       ci.cusbankname" +
 		"  FROM BANK_ACCOUNTSIGN t" +
 		"  FROM BANK_ACCOUNTSIGN t" +
 		" INNER JOIN TAACCOUNT ta" +
 		" INNER JOIN TAACCOUNT ta" +
 		"    on t.accountcode = to_char(ta.accountid)" +
 		"    on t.accountcode = to_char(ta.accountid)" +
 		" LEFT JOIN BANK_BANKINFO b on t.bankid=b.bankid" +
 		" LEFT JOIN BANK_BANKINFO b on t.bankid=b.bankid" +
+		" LEFT JOIN bank_cusbankinfo ci ON ci.cusbankid = t.CUSBANKID" +
 		" WHERE 1 = 1" +
 		" WHERE 1 = 1" +
 		"   and ta.taaccounttype = 2"
 		"   and ta.taaccounttype = 2"
 	sqlId.And("ta.RELATEDUSERID", r.RELATEDUSERID)
 	sqlId.And("ta.RELATEDUSERID", r.RELATEDUSERID)