|
@@ -29,6 +29,7 @@ type EdbInfo struct {
|
|
|
MaxValue float64 `description:"指标最大值"`
|
|
|
CalculateFormula string `description:"计算公式"`
|
|
|
EdbType int `description:"指标类型:1:基础指标,2:计算指标"`
|
|
|
+ IsUpdate int `description:"当天是否已更新,1:未更新,2:已更新"`
|
|
|
Sort int `description:"排序字段"`
|
|
|
LatestDate string `description:"数据最新日期"`
|
|
|
LatestValue float64 `description:"数据最新值"`
|
|
@@ -115,3 +116,10 @@ func GetEdbInfoCalculateBaseEdbInfo(edbCode string) (items []*EdbInfoCalculateBa
|
|
|
_, err = o.Raw(sql, edbCode).QueryRows(&items)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+func GetEdbInfoItemByEdbCode(edbCode string) (item *EdbInfo, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ sql := ` SELECT * FROM edb_info WHERE edb_code=? `
|
|
|
+ err = o.Raw(sql, edbCode).QueryRow(&item)
|
|
|
+ return
|
|
|
+}
|