diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java index 0ca8fa0..6318e17 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java @@ -39,7 +39,8 @@ public class NotifyManage { .eq(Objects.nonNull(notifyListReq.getReaded()), Notify::getReaded, notifyListReq.getReaded()) .eq(Notify::getUserId, userId) .like(Objects.nonNull(notifyListReq.getTitle()), Notify::getTitle, notifyListReq.getTitle()) - .eq(Objects.nonNull(notifyListReq.getType()), Notify::getType, notifyListReq.getType()); + .eq(Objects.nonNull(notifyListReq.getType()), Notify::getType, notifyListReq.getType()) + .orderByDesc(Notify::getCreateTime); notifyService.page(page,wrapper); if(page.getTotal() == 0L){ return PageVo.empty();