diff --git a/src/main/java/com/mobile_education_platform/service/impl/NoticeServiceImpl.java b/src/main/java/com/mobile_education_platform/service/impl/NoticeServiceImpl.java index 722369435f615be72485a30976a66bf5e9db9f00..9e96168044c042996e7bdab47dccc51b53ae1658 100644 --- a/src/main/java/com/mobile_education_platform/service/impl/NoticeServiceImpl.java +++ b/src/main/java/com/mobile_education_platform/service/impl/NoticeServiceImpl.java @@ -64,6 +64,7 @@ public class NoticeServiceImpl extends ServiceImpl impleme QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("promulgator_id",teacherId); queryWrapper.eq("is_deleted",1); + queryWrapper.orderByDesc("create_time"); return baseMapper.selectPage(page,queryWrapper); }