fix: 修复按字段排序失效问题
parent
d39415328c
commit
4a316f6b87
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue