|
@@ -46,8 +46,9 @@ public class PcBladeNoticeController {
|
|
|
@ApiIgnore @RequestParam Map<String, Object> noticeParams,
|
|
|
Query query,
|
|
|
BladeUser bladeUser) {
|
|
|
- // 1. 构建基础查询条件
|
|
|
- QueryWrapper<PcBladeNotice> queryWrapper = Condition.getQueryWrapper(noticeParams, PcBladeNotice.class);
|
|
|
+ // 1. 构建基础查询条件,根据创建时间倒序排序
|
|
|
+ QueryWrapper<PcBladeNotice> queryWrapper = Condition.getQueryWrapper(noticeParams, PcBladeNotice.class)
|
|
|
+ .orderByDesc("create_time");
|
|
|
// 2. 执行分页查询
|
|
|
IPage<PcBladeNotice> pages = noticeService.page(Condition.getPage(query), queryWrapper);
|
|
|
// 3. 转换VO并返回
|