Showing
1 changed file
with
1 additions
and
1 deletions
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <sqlMap namespace="news"> | 2 | <sqlMap namespace="news"> |
3 | <select id="getList"> | 3 | <select id="getList"> |
4 | - SELECT * FROM `tbl_news` #where# order by create_time desc limit :offset, :limit | 4 | + SELECT * FROM `tbl_news` #where# order by sort DESC , create_time desc limit :offset, :limit |
5 | </select> | 5 | </select> |
6 | <select id="getOneById"> | 6 | <select id="getOneById"> |
7 | SELECT * FROM `tbl_news` where `id`=:id | 7 | SELECT * FROM `tbl_news` where `id`=:id |
-
Please register or login to post a comment