mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-05 11:47:32 +00:00
SortOrder.DESC
This commit is contained in:
@@ -79,7 +79,7 @@ public class PageRequestDto {
|
|||||||
.sort(SortOrder.valueOf(entry.getValue().getKeyword())))
|
.sort(SortOrder.valueOf(entry.getValue().getKeyword())))
|
||||||
.toList();
|
.toList();
|
||||||
if (sortFields.isEmpty()) {
|
if (sortFields.isEmpty()) {
|
||||||
return List.of(field(name("id")).sort(SortOrder.ASC));
|
return List.of(field(name("id")).sort(SortOrder.DESC));
|
||||||
} else {
|
} else {
|
||||||
return sortFields;
|
return sortFields;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user