fix:行程规划地点增加打车的地点

This commit is contained in:
lulz1 2024-05-29 16:33:07 +08:00
parent 63219bfa3d
commit 668d08ee88
1 changed files with 4 additions and 1 deletions

View File

@ -284,7 +284,10 @@ public class OrderQuery {
.filter(Objects::nonNull)
.toList();
locationRes.addAll(carLocationList);
res.setLocationResList(locationRes);
res.setLocationResList(locationRes.stream()
.distinct()
.filter(Objects::nonNull)
.toList());
res.setUserName(user.getName());
if (LocalDateTime.now().isAfter(routeOrder.getEndTime())) {