@@ -26,7 +26,7 @@ func GetHomeList(condition string, pars []interface{}, startSize, pageSize int)
if condition != "" {
sql += condition
}
- sql += ` ORDER BY publish_date DESC LIMIT ?,? `
+ sql += ` ORDER BY publish_date DESC LIMIT,article_id DESC ?,? `
fmt.Println(sql)
_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
return