1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package data_manage
- import "github.com/beego/beego/v2/client/orm"
- type BaseFromSmmIndexItem struct {
- BaseFromSmmIndexId int32 `json:"base_from_smm_index_id"`
- ClassifyId int32 `json:"classify_id"`
- Interface string `json:"interface"`
- Name string `json:"name"`
- IndexCode string `json:"index_code"`
- IndexName string `json:"index_name"`
- Type1 string `json:"type_1"`
- Type2 string `json:"type_2"`
- Type3 string `json:"type_3"`
- Frequency string `json:"frequency"`
- Unit string `json:"unit"`
- ApiStartTime string `json:"api_start_time"`
- ApiUpdateTime string `json:"api_update_time"`
- StartTime string `json:"start_time"`
- FinishTime string `json:"finish_time"`
- CreateTime string `json:"create_time"`
- ModifyTime string `json:"modify_time"`
- StartDate string `json:"start_date"`
- EndDate string `json:"end_date"`
- IsGet int32 `json:"is_get"`
- Sort int32 `json:"sort"`
- BaseFileName string `json:"base_file_name"`
- RenameFileName string `json:"rename_file_name"`
- TerminalCode string `json:"terminal_code"`
- DataState string `json:"data_state"`
- ReleaseTime string `json:"release_time"`
- IsStop int32 `json:"is_stop"`
- EndValue float64 `json:"end_value"`
- }
- func GetBaseFromSmmIndexItemItemByCode(edbCode string) (item *BaseFromSmmIndexItem, err error) {
- o := orm.NewOrmUsingDB("data")
- sql := ` SELECT * FROM base_from_smm_index WHERE index_code=? `
- err = o.Raw(sql, edbCode).QueryRow(&item)
- return
- }
|