update:
bug修改
This commit is contained in:
parent
4c0f84d742
commit
2013d5b815
@ -1350,6 +1350,7 @@ public class AsynRunTaskService extends BaseService {
|
|||||||
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, startPosition, targetPosition, rgv2CurrPosition);
|
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, startPosition, targetPosition, rgv2CurrPosition);
|
||||||
if (conflictBoolean){
|
if (conflictBoolean){
|
||||||
Integer status = moveRgv(2, currTaskId, 2,0);
|
Integer status = moveRgv(2, currTaskId, 2,0);
|
||||||
|
logger.info(status.toString());
|
||||||
if (status!=1){
|
if (status!=1){
|
||||||
logger.info("===执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败===");
|
logger.info("===执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败===");
|
||||||
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败");
|
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位2,执行失败");
|
||||||
@ -1373,6 +1374,7 @@ public class AsynRunTaskService extends BaseService {
|
|||||||
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, currTask.getStartPosition(), currTask.getTargetPosition(), rgv1CurrPosition);
|
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, currTask.getStartPosition(), currTask.getTargetPosition(), rgv1CurrPosition);
|
||||||
if (conflictBoolean){
|
if (conflictBoolean){
|
||||||
Integer status = moveRgv(1, currTaskId, 39,0);
|
Integer status = moveRgv(1, currTaskId, 39,0);
|
||||||
|
logger.info(status.toString());
|
||||||
if (status!=1){
|
if (status!=1){
|
||||||
logger.info("===执行任务:"+currTaskId+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败===");
|
logger.info("===执行任务:"+currTaskId+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败===");
|
||||||
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败");
|
webSocketServer.sendtoAll(LocalDateTime.now()+"执行任务:"+currTask.getTaskCode()+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12,执行失败");
|
||||||
|
Loading…
Reference in New Issue
Block a user