yanderong
2026-07-14 27d89506f169e5e4849eec7167ca2405e9f00950
UserYKDTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/taxi/service/impl/OrderTaxiServiceImpl.java
@@ -1887,12 +1887,14 @@
      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;