Explorar o código

略平台图表,记录所有,的显示用户收藏使用 详情页回显

xingzai %!s(int64=2) %!d(string=hai) anos
pai
achega
608509d127
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/chart.go

+ 1 - 1
models/chart.go

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