| | |
| | | String driverId = (String) redisTemplate.opsForValue().get("DEVICE_" + map.get("driverId")); |
| | | map.put("device", ToolUtil.isNotEmpty(driverId) ? 2 : 1); |
| | | map.put("orderType", 2); |
| | | if (Objects.equals(orderTaxi.getPaymentMode(), 1)) { |
| | | System.out.println("预付价格871"); |
| | | fillTaxiPrepayDisplayMoney(orderTaxi, map); |
| | | } else { |
| | | System.out.println("计算价格874"); |
| | | taxiPreAmountCalculate(orderTaxi, map); |
| | | if(Objects.isNull(map.get("orderMoney")) || Double.parseDouble(String.valueOf(map.get("orderMoney"))) <= 0) { |
| | | if (Objects.equals(orderTaxi.getPaymentMode(), 1)) { |
| | | System.out.println("预付价格871"); |
| | | fillTaxiPrepayDisplayMoney(orderTaxi, map); |
| | | } else { |
| | | System.out.println("计算价格874"); |
| | | taxiPreAmountCalculate(orderTaxi, map); |
| | | } |
| | | } |
| | | log.info("获取订单详情为:{}", JSONArray.toJSONString(map)); |
| | | return map; |