Browse Source

图表排序规则处理

xingzai 2 years ago
parent
commit
2c32216833
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/chart.go

+ 1 - 1
models/chart.go

@@ -174,7 +174,7 @@ func GetChartList(condition string, pars []interface{}, startSize, pageSize int)
 	if condition != "" {
 		sql += condition
 	}
-	sql += ` ORDER BY create_date DESC LIMIT ?,? `
+	sql += ` ORDER BY chart_id DESC LIMIT ?,? `
 	_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
 	return
 }