|
@ -23,7 +23,7 @@ public class ShopDealerWithdrawServiceImpl extends ServiceImpl<ShopDealerWithdra |
|
|
@Override |
|
|
@Override |
|
|
public PageResult<ShopDealerWithdraw> pageRel(ShopDealerWithdrawParam param) { |
|
|
public PageResult<ShopDealerWithdraw> pageRel(ShopDealerWithdrawParam param) { |
|
|
PageParam<ShopDealerWithdraw, ShopDealerWithdrawParam> page = new PageParam<>(param); |
|
|
PageParam<ShopDealerWithdraw, ShopDealerWithdrawParam> page = new PageParam<>(param); |
|
|
page.setDefaultOrder("sort_number asc, create_time desc"); |
|
|
|
|
|
|
|
|
page.setDefaultOrder("create_time desc"); |
|
|
List<ShopDealerWithdraw> list = baseMapper.selectPageRel(page, param); |
|
|
List<ShopDealerWithdraw> list = baseMapper.selectPageRel(page, param); |
|
|
return new PageResult<>(list, page.getTotal()); |
|
|
return new PageResult<>(list, page.getTotal()); |
|
|
} |
|
|
} |
|
@ -33,7 +33,7 @@ public class ShopDealerWithdrawServiceImpl extends ServiceImpl<ShopDealerWithdra |
|
|
List<ShopDealerWithdraw> list = baseMapper.selectListRel(param); |
|
|
List<ShopDealerWithdraw> list = baseMapper.selectListRel(param); |
|
|
// 排序
|
|
|
// 排序
|
|
|
PageParam<ShopDealerWithdraw, ShopDealerWithdrawParam> page = new PageParam<>(); |
|
|
PageParam<ShopDealerWithdraw, ShopDealerWithdrawParam> page = new PageParam<>(); |
|
|
page.setDefaultOrder("sort_number asc, create_time desc"); |
|
|
|
|
|
|
|
|
page.setDefaultOrder("create_time desc"); |
|
|
return page.sortRecords(list); |
|
|
return page.sortRecords(list); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|