| | |
| | | return prepaySettleResult; |
| | | } |
| | | // orderMoney = getTaxiPrepayFinalPayAmount(orderTaxi, orderMoney); |
| | | if (orderTaxi.getPrepayStage() == 3){ |
| | | if (Objects.nonNull(orderTaxi.getPrepayStage()) && orderTaxi.getPrepayStage() == 3){ |
| | | orderMoney = orderMoney - orderTaxi.getEstimateAmount(); |
| | | } |
| | | orderMoney = orderMoney < 0 ? 0 : orderMoney; |
| | |
| | | orderMoney = v; |
| | | } |
| | | } |
| | | if (orderTaxi.getPrepayStage() == 3){ |
| | | if (Objects.nonNull(orderTaxi.getPrepayStage()) && orderTaxi.getPrepayStage() == 3){ |
| | | orderMoney = orderMoney - orderTaxi.getEstimateAmount(); |
| | | } |
| | | orderMoney = orderMoney < 0 ? 0 : orderMoney; |
| | |
| | | Double displayAmount = getTaxiPrepayDisplayPayAmount(orderTaxi, finalAmount); |
| | | map.put("orderMoney", finalAmount); |
| | | map.put("payMoney", displayAmount); |
| | | if (orderTaxi.getPrepayStage() == 3) { |
| | | if (Objects.nonNull(orderTaxi.getPrepayStage()) && orderTaxi.getPrepayStage() == 3) { |
| | | map.put("payMoney", new BigDecimal(finalAmount) |
| | | .subtract(new BigDecimal(orderTaxi.getEstimateAmount() != null ? orderTaxi.getEstimateAmount() : 0)) |
| | | .setScale(2, RoundingMode.HALF_UP)); |