|
@@ -7,7 +7,7 @@ import (
|
|
|
)
|
|
|
|
|
|
type BaseFromOilchemClassify struct {
|
|
|
- BaseFromCcfClassifyId int // 分类ID
|
|
|
+ BaseFromOilchemClassifyId int // 分类ID
|
|
|
ClassifyName string // 分类名称
|
|
|
ParentID int // 上级ID
|
|
|
Level int // 层级
|
|
@@ -202,13 +202,13 @@ type ExportOilchemExcelReq struct {
|
|
|
// GetOilchemIndexByConditionAndFrequency 根据条件获取隆众资讯指标列表
|
|
|
func GetOilchemIndexByConditionAndFrequency(condition, frequency string, pars []interface{}) (items []*BaseFromOilchemIndex, err error) {
|
|
|
o := orm.NewOrmUsingDB("data")
|
|
|
- sql := ` SELECT * FROM base_from_sci_hq_index WHERE 1=1 `
|
|
|
+ sql := ` SELECT * FROM base_from_oilchem_index WHERE 1=1 `
|
|
|
|
|
|
if condition != "" {
|
|
|
sql += condition
|
|
|
}
|
|
|
sql += ` AND frequency=?`
|
|
|
- sql += ` ORDER BY sort ASC, base_from_sci_hq_index_id ASC`
|
|
|
+ sql += ` ORDER BY sort ASC, base_from_oilchem_index_id ASC`
|
|
|
_, err = o.Raw(sql, pars, frequency).QueryRows(&items)
|
|
|
return
|
|
|
}
|