mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 13:03:42 +08:00
🐛 Fixing a bug. closed #I1Y1PH 排序参数丢失 https://gitee.com/log4j/pig/issues/I1Y1PH
This commit is contained in:
parent
e07fb776ec
commit
dfcabf5621
@ -79,9 +79,9 @@ public class SqlFilterArgumentResolver implements HandlerMethodArgumentResolver
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<OrderItem> orderItemList = new ArrayList<>();
|
List<OrderItem> orderItemList = new ArrayList<>();
|
||||||
Optional.ofNullable(ascs).ifPresent(s -> orderItemList.addAll(Arrays.stream(s).filter(Objects::isNull)
|
Optional.ofNullable(ascs).ifPresent(s -> orderItemList.addAll(Arrays.stream(s).filter(StrUtil::isNotBlank)
|
||||||
.map(this::clear).map(OrderItem::asc).collect(Collectors.toList())));
|
.map(this::clear).map(OrderItem::asc).collect(Collectors.toList())));
|
||||||
Optional.ofNullable(descs).ifPresent(s -> orderItemList.addAll(Arrays.stream(s).filter(Objects::isNull)
|
Optional.ofNullable(descs).ifPresent(s -> orderItemList.addAll(Arrays.stream(s).filter(StrUtil::isNotBlank)
|
||||||
.map(this::clear).map(OrderItem::desc).collect(Collectors.toList())));
|
.map(this::clear).map(OrderItem::desc).collect(Collectors.toList())));
|
||||||
page.addOrder(orderItemList);
|
page.addOrder(orderItemList);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user