fix:修复打车行程缺失地点而导致的bug
This commit is contained in:
parent
bcac378e4b
commit
2cf04ad987
|
@ -276,6 +276,7 @@ public class OrderQuery {
|
||||||
List<LocationRes> carLocationList = legItems
|
List<LocationRes> carLocationList = legItems
|
||||||
.stream()
|
.stream()
|
||||||
.filter(leg -> leg.getLegType().equals(LEG_TYPE_TAXI))
|
.filter(leg -> leg.getLegType().equals(LEG_TYPE_TAXI))
|
||||||
|
.filter(leg -> leg.getLegExtensionField() != null && leg.getLegExtensionField().getLocationList() != null)
|
||||||
.flatMap(leg -> leg.getLegExtensionField().getLocationList().stream())
|
.flatMap(leg -> leg.getLegExtensionField().getLocationList().stream())
|
||||||
.map(LocationRes::copyFrom)
|
.map(LocationRes::copyFrom)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
Loading…
Reference in New Issue