| | |
| | | @Override |
| | | public ResultUtil process(Integer orderId, Integer state, Double lon, Double lat, String address, String driverImg) throws Exception { |
| | | OrderLogistics orderLogistics = this.selectById(orderId); |
| | | if(10 == orderLogistics.getState()){ |
| | | return ResultUtil.error("订单已被取消,不能继续操作"); |
| | | } |
| | | UserInfo userInfo = userInfoMapper.selectById(orderLogistics.getUserId()); |
| | | switch (state){ |
| | | case 3://出发前往预约点 |
| | |
| | | orderLogistics.setStartServiceTime(date); |
| | | orderLogistics.setBoardingTime(date); |
| | | |
| | | String value = (String) redisTemplate.opsForValue().get("DRIVER" + uid); |
| | | String value = (String) redisTemplate.opsForValue().get("dache:DRIVER" + uid); |
| | | if(ToolUtil.isNotEmpty(value)){ |
| | | String[] split = value.split(","); |
| | | Map<String, String> geocode1 = gdMapGeocodingUtil.geocode(split[0], split[1]); |