@@ -268,7 +268,7 @@ func GetChartDetailById(chartId, uid int) (item *CygxChartDetail, err error) {
o := orm.NewOrm()
sql := `SELECT * ,( SELECT COUNT( 1 ) FROM cygx_chart_collect AS c WHERE c.chart_id = a.chart_id AND c.user_id = ? ) AS collection_num
FROM
- cygx_chart as a
+ cygx_chart_all as a
WHERE
a.chart_id =? `
err = o.Raw(sql, uid, chartId).QueryRow(&item)