浏览代码

/Ferroalloy/QuerySpotgoodsPrice :添加 tradedate2

deng.yinping 2 年之前
父节点
当前提交
6b85f8d742
共有 4 个文件被更改,包括 13 次插入0 次删除
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 2 0
      models/ferroalloy.go

+ 4 - 0
docs/docs.go

@@ -48714,6 +48714,10 @@ const docTemplate = `{
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"
                 },
+                "tradedate2": {
+                    "description": "交易日-期货(yyyyMMdd)",
+                    "type": "string"
+                },
                 "wrstandardcode": {
                     "description": "现货商品代码",
                     "type": "string"

+ 4 - 0
docs/swagger.json

@@ -48705,6 +48705,10 @@
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"
                 },
+                "tradedate2": {
+                    "description": "交易日-期货(yyyyMMdd)",
+                    "type": "string"
+                },
                 "wrstandardcode": {
                     "description": "现货商品代码",
                     "type": "string"

+ 3 - 0
docs/swagger.yaml

@@ -20464,6 +20464,9 @@ definitions:
       tradedate:
         description: 交易日(yyyyMMdd)
         type: string
+      tradedate2:
+        description: 交易日-期货(yyyyMMdd)
+        type: string
       wrstandardcode:
         description: 现货商品代码
         type: string

+ 2 - 0
models/ferroalloy.go

@@ -1911,6 +1911,7 @@ type Spotgoodsprice struct {
 	YSTSPOTGOODSPRICE   float64          `json:"ystspotgoodsprice" xorm:"YSTSPOTGOODSPRICE"`           // 昨结价格
 	TODAYSPOTGOODSPRICE float64          `json:"todayspotgoodsprice" xorm:"TODAYSPOTGOODSPRICE"`       // 今开价格
 	DIFFPRICE           float64          `json:"diffprice" xorm:"DIFFPRICE"`                           // 差价
+	TRADEDATE2          string           `json:"tradedate2" xorm:"TRADEDATE2"`                         // 交易日-期货(yyyyMMdd)
 	PageEx              `xorm:"extends"` // 页码信息
 }
 
@@ -1931,6 +1932,7 @@ func (r *Spotgoodsprice) buildSql() string {
 		t.ystspotgoodsprice,
     	t.todayspotgoodsprice,
     	t.diffprice,
+		t.tradedate2,
 		case
          when substr(t.tradedate, 0, 6) - to_char(sysdate, 'yyyyMM') = 0 then 1
          else 0 end priceflag