Quellcode durchsuchen

/sbyj/QueryTradeHolderDetailEx: 返回 商品名称国际化字段

deng.yinping vor 1 Jahr
Ursprung
Commit
698db7143d
4 geänderte Dateien mit 41 neuen und 1 gelöschten Zeilen
  1. 12 0
      docs/docs.go
  2. 12 0
      docs/swagger.json
  3. 9 0
      docs/swagger.yaml
  4. 8 1
      models/sbyj.go

+ 12 - 0
docs/docs.go

@@ -57972,6 +57972,18 @@ const docTemplate = `{
                     "description": "期货合约名称",
                     "type": "string"
                 },
+                "goodsnameen": {
+                    "description": "期货合约名称(英文)",
+                    "type": "string"
+                },
+                "goodsnameth": {
+                    "description": "期货合约名称泰文)",
+                    "type": "string"
+                },
+                "goodsnametw": {
+                    "description": "期货合约名称(繁体)",
+                    "type": "string"
+                },
                 "goodunitid": {
                     "description": "报价单位ID",
                     "type": "integer"

+ 12 - 0
docs/swagger.json

@@ -57963,6 +57963,18 @@
                     "description": "期货合约名称",
                     "type": "string"
                 },
+                "goodsnameen": {
+                    "description": "期货合约名称(英文)",
+                    "type": "string"
+                },
+                "goodsnameth": {
+                    "description": "期货合约名称泰文)",
+                    "type": "string"
+                },
+                "goodsnametw": {
+                    "description": "期货合约名称(繁体)",
+                    "type": "string"
+                },
                 "goodunitid": {
                     "description": "报价单位ID",
                     "type": "integer"

+ 9 - 0
docs/swagger.yaml

@@ -25325,6 +25325,15 @@ definitions:
       goodsname:
         description: 期货合约名称
         type: string
+      goodsnameen:
+        description: 期货合约名称(英文)
+        type: string
+      goodsnameth:
+        description: 期货合约名称泰文)
+        type: string
+      goodsnametw:
+        description: 期货合约名称(繁体)
+        type: string
       goodunitid:
         description: 报价单位ID
         type: integer

+ 8 - 1
models/sbyj.go

@@ -550,6 +550,9 @@ type Tradeholderdetailex struct {
 	DECIMALPLACE int32   `json:"decimalplace" xorm:"DECIMALPLACE"` // 报价小数位
 	GOODUNITID   int32   `json:"goodunitid" xorm:"GOODUNITID"`     // 报价单位ID
 	THUMURLS     string  `json:"thumurls" xorm:"THUMURLS"`         // 缩略图片(1:1)(逗号分隔)
+	GOODSNAMETH  string  `json:"goodsnameth" xorm:"GOODSNAMETH"`   // 期货合约名称泰文)
+	GOODSNAMEEN  string  `json:"goodsnameen" xorm:"GOODSNAMEEN"`   // 期货合约名称(英文)
+	GOODSNAMETW  string  `json:"goodsnametw" xorm:"GOODSNAMETW"`   // 期货合约名称(繁体)
 
 	MarketIds string `form:"marketids"` // 过滤市场ID列表,格式 1,2,3
 
@@ -622,9 +625,13 @@ func (r *Tradeholderdetailex) buildSql() string {
 		g.agreeunit,
 		g.decimalplace,
 		g.goodunitid,
-		g.thumurls 
+		g.thumurls,
+		ge.goodsnameth,
+	    ge.goodsnameen,
+	    ge.goodsnametw
 	from trade_holderdetailex t
 	left join goods g on g.goodsid = t.goodsid 
+	left join goodsex ge on t.goodsid = ge.goodsid
 	where 1=1 
 	`