| | |
| | | mileage += (orderPrivateCar.getMileage() == null ? 0 : orderPrivateCar.getMileage()); |
| | | } |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("Address", 520302);//注册地行政区划代码 |
| | | jsonObject.put("Address", 530602);//注册地行政区划代码 |
| | | jsonObject.put("VehicleNo", car.getCarLicensePlate());//车辆号牌 |
| | | jsonObject.put("TotalMile", Integer.valueOf(mileage / 1000));//行驶总里程(km) |
| | | jsonObject.put("Flag", 1);//操作标识(1:新增,2:更新,3:删除) |
| | |
| | | OrderPrivateCar orderPrivateCar = orderPrivateCarService.selectById(orderId); |
| | | Map<String, Object> query = systemPriceMapper.query(orderPrivateCar.getCompanyId(), 1, orderPrivateCar.getServerCarModelId()); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("Address", 520302);//发起第行政区划代码 |
| | | jsonObject.put("Address", 530602);//发起第行政区划代码 |
| | | jsonObject.put("OrderId", orderPrivateCar.getOrderNum());//订单编号 |
| | | jsonObject.put("DepartTime", orderPrivateCar.getTravelTime());//预计用车时间YYYYMMDDhhmmss |
| | | jsonObject.put("OrderTime", orderPrivateCar.getInsertTime());//订单发起时间YYYYMMDDhhmmss |
| | |
| | | Car car = carService.selectById(orderPrivateCar.getCarId()); |
| | | String value = redisUtil.getValue("DRIVER" + orderPrivateCar.getDriverId()); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("Address", 520302);//发起地行政区划代码 |
| | | jsonObject.put("Address", 530602);//发起地行政区划代码 |
| | | jsonObject.put("OrderId", orderPrivateCar.getOrderNum());//订单编号 |
| | | jsonObject.put("Longitude", Double.valueOf(value.split(",")[0]));//车辆经度 |
| | | jsonObject.put("Latitude", Double.valueOf(value.split(",")[1]));//车辆纬度 |
| | |
| | | TransactionDetails transactionDetails = transactionDetailsService.selectOne(new EntityWrapper<TransactionDetails>().eq("orderType", 1).eq("orderId", orderId)); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("OrderId", orderPrivateCar.getOrderNum());//订单号 |
| | | jsonObject.put("OnArea", 520302);//上车位置行政区划代码 |
| | | jsonObject.put("OnArea", 530602);//上车位置行政区划代码 |
| | | jsonObject.put("DriverName", driver.getName());//机动车驾驶员 |
| | | if (driver.getIdCard() == null){ |
| | | return; |
| | |
| | | return; |
| | | } |
| | | jsonObject.put("LicenseId", driver.getIdCard());//机动车驾驶证号 |
| | | jsonObject.put("DriverRegionCode", 520302);//行政区划代码 |
| | | jsonObject.put("DriverRegionCode", 530602);//行政区划代码 |
| | | jsonObject.put("VehicleNo", car.getCarLicensePlate());//车辆号牌 |
| | | jsonObject.put("PositionTime", new Date());//定位时间(时间戳) |
| | | jsonObject.put("Longitude", Longitude);//经度 |
| | |
| | | } |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("VehicleNo", car.getCarLicensePlate());//车辆号牌 |
| | | jsonObject.put("VehicleRegionCode", 520302);//行政区划代码 |
| | | jsonObject.put("VehicleRegionCode", 530602);//行政区划代码 |
| | | jsonObject.put("PositionTime", new Date());//定位时间(时间戳) |
| | | jsonObject.put("Longitude", Longitude);//经度 |
| | | jsonObject.put("Latitude", Latitude);//纬度 |