Parcourir la source

粮油商务网-联调

gmy il y a 8 mois
Parent
commit
df8f5c970c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      models/data_manage/base_from_ly_index.go

+ 1 - 1
models/data_manage/base_from_ly_index.go

@@ -59,7 +59,7 @@ func GetLyIndexByClassifyIds(classifyIds []int) (items []*BaseFromLyIndex, err e
 
 // GetLyIndexCount 获取指标总数
 func GetLyIndexCount(classifyId string, searchParam string) (count int, err error) {
-	o := orm.NewOrm()
+	o := orm.NewOrmUsingDB("data")
 	qs := o.QueryTable("base_from_ly_index")
 
 	// 精确匹配 classifyId