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