浏览代码

粮油商务网-联调

gmy 8 月之前
父节点
当前提交
df8f5c970c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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