fix:分页排序将已结束的订单放到最后,修复未提交审批的订单查询问题
This commit is contained in:
parent
264e41669e
commit
5f64023b2f
|
@ -561,7 +561,11 @@ public class OrderQuery {
|
|||
}
|
||||
return stream
|
||||
.filter(order -> !order.getOrderStatus().equals(ORDER_STATUS_FINISH) &&
|
||||
(order.getApproveOrderNo() != null && order.getApproveOrderNo().getActualOrderNo() != null))
|
||||
order.getApproveOrderNo() != null &&
|
||||
order.getApproveOrderNo().getActualOrderNo() != null &&
|
||||
order.getLegItems() != null &&
|
||||
!order.getLegItems().isEmpty() &&
|
||||
order.getLegItems().stream().anyMatch(leg -> !leg.getLegType().equals(LEG_TYPE_OTHER)))
|
||||
.sorted(Comparator.comparing(RouteOrder::getUpdateTime).reversed())
|
||||
.map(order -> {
|
||||
User user = userRepository.findByUserEmployeeNo(order.getUserId());
|
||||
|
|
Loading…
Reference in New Issue