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