| | |
| | | Map<String, String> distance1 = MapUtil.getDistance(orderInfoWarpper.getStartLng() + "," + orderInfoWarpper.getStartLat(), value, 0); |
| | | orderInfoWarpper.setPickUpTime(Integer.valueOf(distance1.get("duration")) / 60); |
| | | } |
| | | |
| | | Map<String, String> distance = MapUtil.getDistance(order.getStartLng() + "," + order.getStartLat(), order.getEndLng() + "," + order.getEndLat(), 1); |
| | | if(null != distance){ |
| | | Double d = Double.valueOf(distance.get("distance")) / 1000; |
| | | orderInfoWarpper.setEstimatedMileage(d); |
| | | orderInfoWarpper.setEstimatedTime(Double.valueOf(Integer.valueOf(distance.get("duration")) / 60)); |
| | | Driver driver = driverService.selectById(uid); |
| | | Order orderPrice = getOrderPrice(1, d, 0, order, "", driver.getBranchOfficeId()); |
| | | orderInfoWarpper.setEstimatedPrice(orderPrice.getEstimatedPrice()); |
| | | } |
| | | |
| | | orderInfoWarpper.setDriverId(order.getDriverId()); |
| | | return orderInfoWarpper; |
| | | } |
| | |
| | | .where("'" + geocode.getCity() + "' like CONCAT('%', city, '%') and '" + geocode.getDistrict() + "' like CONCAT('%', district, '%') ")); |
| | | city = null != weatherCity ? weatherCity.getId().toString() : ""; |
| | | } |
| | | boolean badWeather = WeatherUtil.isBadWeather(city); |
| | | // boolean badWeather = WeatherUtil.isBadWeather(city); |
| | | boolean badWeather = false; |
| | | if(badWeather){ |
| | | Integer num8 = JSON.parseObject(systemConfig.getContent()).getInteger("num8"); |
| | | if(num8 > 0){ |