Przeglądaj źródła

瑞兹得添加指标列表

gmy 5 miesięcy temu
rodzic
commit
836e105a14
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      models/data_manage/base_from_rzd_index.go

+ 3 - 3
models/data_manage/base_from_rzd_index.go

@@ -163,7 +163,7 @@ func GetRzdIndexByCodeAndClassify(indexCode string, classifyId int, frequency *s
 	var params []interface{}
 
 	if classifyId != 0 {
-		sql += ` AND a.classify_id = ?`
+		sql += ` AND a.base_from_rzd_classify_id = ?`
 		params = append(params, classifyId)
 	}
 
@@ -190,7 +190,7 @@ func GetRzdIndexByCodeAndClassify(indexCode string, classifyId int, frequency *s
 // GetRzdIndexInfoCount 分页查询指标信息行数
 func GetRzdIndexInfoCount(condition string, pars []interface{}) (count int, err error) {
 	o := orm.NewOrmUsingDB("data")
-	sql := ` SELECT count(1) FROM base_from_rzd_index WHERE 1=1  `
+	sql := ` SELECT count(1) FROM base_from_rzd_index WHERE index_code not in (select edb_code from edb_info) `
 	if condition != "" {
 		sql += condition
 	}
@@ -201,7 +201,7 @@ func GetRzdIndexInfoCount(condition string, pars []interface{}) (count int, err
 // GetRzdIndexInfoPage 分页查询指标信息
 func GetRzdIndexInfoPage(condition string, pars []interface{}) (items []*BaseFromRzdIndexAndData, err error) {
 	o := orm.NewOrmUsingDB("data")
-	sql := ` SELECT * FROM base_from_rzd_index WHERE 1=1  `
+	sql := ` SELECT * FROM base_from_rzd_index WHERE index_code not in (select edb_code from edb_info) `
 	if condition != "" {
 		sql += condition
 	}