| | |
| | | points.add(dto.getDistance()+""); |
| | | points.add(dto.getDuration()+""); |
| | | |
| | | String key = CacheConstants.QUEUE_POINT_ID + "-" + xpPoint.getId() + "-" + xpPoint.getPointLon() + "," + xpPoint.getPointLat(); |
| | | if (planRuleForQueue == null) { |
| | | redisService.addToTail(key,points+"_"+null); |
| | | } else { |
| | | redisService.addToTail(key,points+"_"+planRuleForQueue); |
| | | } |
| | | log.info("订单推单:{} {}", key, redisService.getCacheList(key)); |
| | | xpOrder.setQueueName(key); |
| | | xpOrderClient.updateOrder(xpOrder); |
| | | // todo 临时关闭,不知道这里修改队列数据干嘛 |
| | | // String key = CacheConstants.QUEUE_POINT_ID + "-" + xpPoint.getId() + "-" + xpPoint.getPointLon() + "," + xpPoint.getPointLat(); |
| | | // if (planRuleForQueue == null) { |
| | | // redisService.addToTail(key,points+"_"+null); |
| | | // } else { |
| | | // redisService.addToTail(key,points+"_"+planRuleForQueue); |
| | | // } |
| | | // log.info("订单推单:{} {}", key, redisService.getCacheList(key)); |
| | | // xpOrder.setQueueName(key); |
| | | // xpOrderClient.updateOrder(xpOrder); |
| | | //给车端推送修改目的地报文 |
| | | String vin = SensitiveDataCryptoUtil.decryptIfPossible(xpVehicle.getVehicleVin()); |
| | | PushOrderDto pushOrderDto = new PushOrderDto(); |