Commit 768603d9 authored by 周健威's avatar 周健威

修改通知排序

parent d59905a2
......@@ -46,6 +46,7 @@ public class NoticeInfoBiz extends BaseBiz<NoticeInfoMapper,NoticeInfo> {
criteria.andEqualTo("userId", noticeInfoDto.getUserId());
criteria.andEqualTo("isDel", 0);
example.orderBy("isRead");
example.orderBy("crtTime").desc();
Query query = new Query(noticeInfoDto);
PageDataVO<NoticeInfo> pageDataVO = PageDataVO.pageInfo(query, () -> mapper.selectByExample(example));
return ObjectRestResponse.succ(pageDataVO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment