fix:修复打车行程缺失地点而导致的bug

This commit is contained in:
lulz1 2024-05-30 16:57:15 +08:00
parent bcac378e4b
commit 2cf04ad987
1 changed files with 1 additions and 0 deletions

View File

@ -276,6 +276,7 @@ public class OrderQuery {
List<LocationRes> carLocationList = legItems
.stream()
.filter(leg -> leg.getLegType().equals(LEG_TYPE_TAXI))
.filter(leg -> leg.getLegExtensionField() != null && leg.getLegExtensionField().getLocationList() != null)
.flatMap(leg -> leg.getLegExtensionField().getLocationList().stream())
.map(LocationRes::copyFrom)
.toList();