소스 검색

粮油商务网-联调

gmy 10 달 전
부모
커밋
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