From c277e3e737765d02140d846a5058673be30f4f3d Mon Sep 17 00:00:00 2001 From: Lemon Date: Thu, 27 Mar 2025 10:01:03 +0800 Subject: [PATCH] =?UTF-8?q?update=20=20=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=9F=A5=E8=AF=A2=E7=AB=99=E7=82=B9=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsowell/pile/service/impl/PileStationInfoServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileStationInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileStationInfoServiceImpl.java index 00631a203..086d332f9 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileStationInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileStationInfoServiceImpl.java @@ -721,8 +721,8 @@ public class PileStationInfoServiceImpl implements PileStationInfoService { if (StringUtils.equals(Constants.ONE, sortType)) { // 低价优先 stationVOList.sort((x1, x2) -> { - Double a = Double.valueOf(x1.getTotalPrice()); - Double b = Double.valueOf(x2.getTotalPrice()); + Double a = Double.valueOf(x1.getTotalPrice() == null ? "0" : x1.getTotalPrice()); + Double b = Double.valueOf(x2.getTotalPrice() == null ? "0" : x2.getTotalPrice()); return a.compareTo(b); }); } else if (distance != 0.00) {