获取消息 按时间逆序

This commit is contained in:
2024-10-01 16:08:40 +08:00
parent 283b6244b1
commit 961f8f874e

View File

@@ -93,6 +93,7 @@ public class MessageCenterServiceImpl extends ServiceImpl<NotificationMapper, No
}
QueryWrapper<Notification> queryWrapper = new QueryWrapper<>();
queryWrapper.orderByDesc("create_time");
if (!StringUtils.isNullOrEmpty(getNotificationDTO.getType())) {
queryWrapper.eq("type", getNotificationDTO.getType());
}