|
@@ -138,7 +138,7 @@ func RefreshFutureGoodEdbDataFromThs(futureGoodEdbInfoId int, edbCode, startDate
|
|
|
}
|
|
|
}()
|
|
|
|
|
|
- var existList []*FutureGoodEdbDataItem
|
|
|
+ var existList []*FutureGoodEdbData
|
|
|
// 获取指标中所有存在的数据值
|
|
|
{
|
|
|
var condition string
|
|
@@ -160,9 +160,9 @@ func RefreshFutureGoodEdbDataFromThs(futureGoodEdbInfoId int, edbCode, startDate
|
|
|
_, err = to.Raw(sql, pars).QueryRows(&existList)
|
|
|
}
|
|
|
|
|
|
- existMap := make(map[string]*FutureGoodEdbDataItem)
|
|
|
+ existMap := make(map[string]*FutureGoodEdbData)
|
|
|
for _, v := range existList {
|
|
|
- existMap[v.DataTime] = v
|
|
|
+ existMap[v.DataTime.Format(utils.FormatDate)] = v
|
|
|
}
|
|
|
addSql := ` INSERT INTO future_good_edb_data(future_good_edb_info_id,future_good_edb_code,data_time,trade_code,open,high,low,close,volume,amt,oi,settle,create_time,modify_time,data_timestamp) values `
|
|
|
var isAdd bool
|