|
@@ -1,7 +1,6 @@
|
|
|
package data_manage
|
|
|
|
|
|
import (
|
|
|
- "eta/eta_api/models/data_source"
|
|
|
"fmt"
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
|
)
|
|
@@ -18,17 +17,20 @@ func GetEdbDataSci99MaxOrMinDate(edbCode string) (minDate, maxDate string, err e
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+type BaseFromSci99IndexItem struct {
|
|
|
+ BaseFromSciIndexId int `orm:"column(base_from_sci_index_id);pk"`
|
|
|
+ IndexCode string
|
|
|
+ IndexName string
|
|
|
+ ClassifyId int
|
|
|
+ Unit string
|
|
|
+ Frequency string
|
|
|
+ Describe string
|
|
|
+ CreateTime string
|
|
|
+ ModifyTime string
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
-func GetBaseInfoFromSci99ByIndexCode(indexCode string) (item *data_source.BaseFromSci99Index, err error) {
|
|
|
+func GetBaseInfoFromSci99ByIndexCode(indexCode string) (item *BaseFromSci99IndexItem, err error) {
|
|
|
o := orm.NewOrmUsingDB("data")
|
|
|
sql := `SELECT * FROM base_from_sci99_index WHERE index_code=? `
|
|
|
sql = fmt.Sprintf(sql)
|