| | |
| | | if (prepaySettleResult != null) { |
| | | return prepaySettleResult; |
| | | } |
| | | if (orderPrivateCar.getPrepayStage() == 3){ |
| | | if (Objects.nonNull(orderPrivateCar.getPrepayStage()) && orderPrivateCar.getPrepayStage() == 3){ |
| | | orderMoney = orderMoney - orderPrivateCar.getEstimateAmount(); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | if (userTaxiCard.getType() == 4) {//打折天数卡{"businessTypes":[1,2,3],"discount":5,"timeQuantum":["08:00:00 - 09:00:00","17:00:00 - 18:00:00"]} |
| | | if (Objects.nonNull(userTaxiCard.getType()) && userTaxiCard.getType() == 4) {//打折天数卡{"businessTypes":[1,2,3],"discount":5,"timeQuantum":["08:00:00 - 09:00:00","17:00:00 - 18:00:00"]} |
| | | Double discount = jsonObject.getDouble("discount");//折扣 |
| | | JSONArray timeQuantum = jsonObject.getJSONArray("timeQuantum");//使用时间段 |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | |
| | | orderMoney = v; |
| | | } |
| | | } |
| | | if (orderPrivateCar.getPrepayStage() == 3){ |
| | | if (Objects.nonNull(orderPrivateCar.getPrepayStage()) && orderPrivateCar.getPrepayStage() == 3){ |
| | | orderMoney = orderMoney - orderPrivateCar.getEstimateAmount(); |
| | | } |
| | | orderMoney = new BigDecimal(orderMoney).setScale(2, RoundingMode.HALF_UP).doubleValue(); |