|
@@ -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
|