zwxi 1 year ago
parent
commit
d02292bbda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/base_from_mtjh.go

+ 1 - 1
models/base_from_mtjh.go

@@ -265,7 +265,7 @@ func RefreshEdbDataFromMtjh(edbInfoId int, edbCode, startDate string) (err error
 
 // GetMtjhindexByCode
 func GetMtjhindexByCode(indexCode string) (items []*BaseFromMtjhIndex, err error) {
-	o := orm.NewOrmUsingDB("data")
+	o := orm.NewOrm()
 	sql := "SELECT * FROM base_from_mtjh_index WHERE index_code=? "
 	_, err = o.Raw(sql, indexCode).QueryRows(&items)
 	return