Browse Source

修改煤炭网bug

longyu 2 năm trước cách đây
mục cha
commit
ee7efb8979
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      models/base_from_coal.go

+ 1 - 1
models/base_from_coal.go

@@ -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 != "" {