公告排序

master
zzy 2026-04-24 15:11:56 +08:00
parent b047bbbf74
commit 5a3a5968b6
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public interface CommunityNoticeMapper extends BaseMapperX<CommunityNoticeDO> {
.apply(reqVO.getCommunityId() != null,
"EXISTS (SELECT 1 FROM comm_notice_scope WHERE notice_id = comm_notice.id AND community_id = {0})",
reqVO.getCommunityId())
.orderByDesc(CommunityNoticeDO::getId));
.orderByDesc(CommunityNoticeDO::getPublishTime));
}
}