diff --git a/hyp-admin/src/main/java/com/hyp/web/controller/manager/SysNoticeManager.java b/hyp-admin/src/main/java/com/hyp/web/controller/manager/SysNoticeManager.java index 3d7b201..d375b33 100644 --- a/hyp-admin/src/main/java/com/hyp/web/controller/manager/SysNoticeManager.java +++ b/hyp-admin/src/main/java/com/hyp/web/controller/manager/SysNoticeManager.java @@ -77,7 +77,7 @@ public class SysNoticeManager { public SysNotice getNotice(){ - return noticeService.list().get(0); + return noticeService.lambdaQuery().orderByDesc(SysNotice::getUpdateTime).list().get(0); } }