|
@@ -34,7 +34,7 @@ func GetBaseFromCoalIndexByCode(suffix, indexCode string) (items []*BaseFromCoal
|
|
|
}
|
|
|
|
|
|
func GetCoalDataByTradeCode(suffix, condition string, pars []interface{}) (item []*BaseFromCoalmineIndex, err error) {
|
|
|
- sql := ` SELECT * FROM base_from_trade_%s WHERE 1=1 `
|
|
|
+ sql := ` SELECT * FROM base_from_coalmine_%s WHERE 1=1 `
|
|
|
sql = fmt.Sprintf(sql, suffix)
|
|
|
o := orm.NewOrm()
|
|
|
if condition != "" {
|