Forráskód Böngészése

查询我的收藏接口增加账户名称出参

zhou.xiaoning 3 éve
szülő
commit
f93ba74074
4 módosított fájl, 16 hozzáadás és 1 törlés
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 5 1
      models/guangzuan.go

+ 4 - 0
docs/docs.go

@@ -32387,6 +32387,10 @@ const docTemplate = `{
                 "userid"
             ],
             "properties": {
+                "accountname": {
+                    "description": "账户名称(机构名称)",
+                    "type": "string"
+                },
                 "buyorsell": {
                     "description": "买卖 - 0:买 1:卖",
                     "type": "integer"

+ 4 - 0
docs/swagger.json

@@ -32378,6 +32378,10 @@
                 "userid"
             ],
             "properties": {
+                "accountname": {
+                    "description": "账户名称(机构名称)",
+                    "type": "string"
+                },
                 "buyorsell": {
                     "description": "买卖 - 0:买 1:卖",
                     "type": "integer"

+ 3 - 0
docs/swagger.yaml

@@ -11775,6 +11775,9 @@ definitions:
     type: object
   models.MyFavorite:
     properties:
+      accountname:
+        description: 账户名称(机构名称)
+        type: string
       buyorsell:
         description: 买卖 - 0:买 1:卖
         type: integer

+ 5 - 1
models/guangzuan.go

@@ -2168,6 +2168,8 @@ type MyFavorite struct {
 	SIZEDISPLAY                string  `json:"sizedisplay" xorm:"SIZEDISPLAY"`                               // 尺寸
 	ZSCATEGORY                 int32   `json:"zscategory" xorm:"ZSCATEGORY"`                                 // 钻石分类 - 枚举”ZSCategory“
 
+	ACCOUNTNAME string `json:"accountname" xorm:"ACCOUNTNAME"` // 账户名称(机构名称)
+
 	PageEx `xorm:"extends"` // 页码信息
 
 	ZSCATEGORYS string `json:"-" form:"zscategorys"` // 钻石分类,格式: 1,2,3
@@ -2219,9 +2221,11 @@ func (r *MyFavorite) buildSql() string {
 		CASE WHEN
 			q.SIZE1 IS NOT NULL AND q.SIZE2 IS NOT NULL AND q.SIZE2 IS NOT NULL THEN q.SIZE1 || '*' || q.SIZE2 || '*' || q.SIZE3
 			ELSE q.SIZE1
-		END AS SIZEDISPLAY	         
+		END AS SIZEDISPLAY,
+		ua1.ACCOUNTNAME	         
 	FROM Wrtrade_Myfavorite t
 	LEFT JOIN view_GZ_WRStandard_Ex_Query q ON t.WRSTANDARDID = q.WRSTANDARDID
+	LEFT JOIN UserAccount ua1 ON t.USERID = ua1.userid
 	WHERE t.marketid=67201
 	`