🐛 Fixing a bug. closed #I1Y1PH 排序参数丢失 https://gitee.com/log4j/pig/issues/I1Y1PH

This commit is contained in:
冰星 2020-10-12 22:18:16 +08:00
parent e07fb776ec
commit dfcabf5621

View File

@ -79,9 +79,9 @@ public class SqlFilterArgumentResolver implements HandlerMethodArgumentResolver
}
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())));
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())));
page.addOrder(orderItemList);