fix: 修复按字段排序失效问题

V0.5.x
zak 2023-08-18 15:36:56 +08:00
parent d39415328c
commit 4a316f6b87
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class PageBuilder {
Map<String,String> sortMap = pageRequest.getSortMap();
if (CollUtil.isNotEmpty(sortMap)){
sortMap.forEach((k,v) -> {
orders.add(new Order(Direction.ASC, k));
orders.add(new Order(Direction.fromString("desc"), k));
});
}
return orders;