|
@@ -124,7 +124,7 @@ public class HotelCouponImplDao implements HotelCouponDao {
|
|
|
public List<HotelCoupon> queryPage(String sqlx, int page, int rows) {
|
|
public List<HotelCoupon> queryPage(String sqlx, int page, int rows) {
|
|
|
SqlUtil.filterKeyword(sqlx);
|
|
SqlUtil.filterKeyword(sqlx);
|
|
|
int start = (page - 1) * rows;// 每页的起始下标
|
|
int start = (page - 1) * rows;// 每页的起始下标
|
|
|
- String sql = selectSql + sqlx + " ORDER BY id DESC limit :start,:rows ";
|
|
|
|
|
|
|
+ String sql = selectSql + sqlx + " ORDER BY create_date DESC limit :start,:rows ";
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
sps.addValue("start", start);
|
|
sps.addValue("start", start);
|
|
|
sps.addValue("rows", rows);
|
|
sps.addValue("rows", rows);
|