xiziwen 1 mês atrás
pai
commit
1759649e80
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      models/data_manage/base_from_clarksons_index.go

+ 2 - 2
models/data_manage/base_from_clarksons_index.go

@@ -155,7 +155,7 @@ func GetClarksonsIndexByClassifyId(classifyIds []int, startSize, pageSize int) (
 	sql := ` SELECT b.*, e.edb_info_id,
 	CASE WHEN e.edb_info_id IS NULL THEN 0 ELSE 1 END AS edb_exist
 	FROM base_from_clarksons_index AS b
-	LEFT JOIN edb_info AS e ON b.index_code=e.edb_code AND e.source=88
+	LEFT JOIN edb_info AS e ON b.index_code=e.edb_code AND e.source=101
 	WHERE b.classify_id IN (` + utils.GetOrmInReplace(len(classifyIds)) + `) ORDER BY b.sort ASC LIMIT ?,? `
 	_, err = o.Raw(sql, classifyIds, startSize, pageSize).QueryRows(&items)
 	return
@@ -185,7 +185,7 @@ func GetClarksonsIndexByPage(startSize, pageSize int) (items []*BaseFromClarkson
 	sql := ` SELECT b.*, e.edb_info_id,
 	CASE WHEN e.edb_info_id IS NULL THEN 0 ELSE 1 END AS edb_exist
 	FROM base_from_clarksons_index AS b
-	LEFT JOIN edb_info AS e ON b.index_code=e.edb_code AND e.source=88
+	LEFT JOIN edb_info AS e ON b.index_code=e.edb_code AND e.source=101
 	ORDER BY b.modify_time DESC LIMIT ?,?`
 	_, err = o.Raw(sql, startSize, pageSize).QueryRows(&items)
 	return