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) {