From 668d08ee885b5b2ad277cb8fc6b02284c04b960e Mon Sep 17 00:00:00 2001 From: lulz1 Date: Wed, 29 May 2024 16:33:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A1=8C=E7=A8=8B=E8=A7=84=E5=88=92?= =?UTF-8?q?=E5=9C=B0=E7=82=B9=E5=A2=9E=E5=8A=A0=E6=89=93=E8=BD=A6=E7=9A=84?= =?UTF-8?q?=E5=9C=B0=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/chint/application/queryies/OrderQuery.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chint/application/queryies/OrderQuery.java b/src/main/java/com/chint/application/queryies/OrderQuery.java index 0867599e..71b3efb7 100644 --- a/src/main/java/com/chint/application/queryies/OrderQuery.java +++ b/src/main/java/com/chint/application/queryies/OrderQuery.java @@ -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())) {