Browse Source

修改信件查询排序SQL

master
21819 2 years ago
parent
commit
fd06641559
  1. 4
      mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java

4
mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java

@ -323,7 +323,7 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> {
}
// 排序
queryWrapper.orderByDesc("w.update_time");
queryWrapper.orderByDesc("m.mail_time");
Page<QueryMailVo> result = baseMapper.selectQueryPage(page, queryWrapper);
for (QueryMailVo workVo : result.getRecords()) {
List<MailLabel> labelNames = mailLabelMapper.selectList(null);
@ -414,7 +414,7 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> {
}
// 排序
queryWrapper.orderByDesc("w.update_time");
queryWrapper.orderByDesc("m.mail_time");
return baseMapper.selectQueryPage(page, queryWrapper);
}

Loading…
Cancel
Save