This commit is contained in:
李广豪 2022-08-11 16:43:06 +08:00
commit 8abbc7193a
3 changed files with 5 additions and 5 deletions

View File

@ -132,7 +132,7 @@ public class CurrTaskController extends BaseController {
//currTaskById.setSheetNo(sheetNo); //currTaskById.setSheetNo(sheetNo);
//currTaskService.updateCurrTaskById(currTaskById); //currTaskService.updateCurrTaskById(currTaskById);
//生成详细任务中的检验结果数据在apms推送生产单结果时创建 //生成详细任务中的检验结果数据在apms推送生产单结果时创建
return successful(0,"创建成功,任务添加至等待执行队列。",""); return successful(0,"创建成功,任务添加至等待执行队列。详情请在订单加工管理下当前任务列表查看","");
//} //}
//else //else
//{ //{
@ -256,7 +256,7 @@ public class CurrTaskController extends BaseController {
//} //}
//i++; //i++;
} }
return successful(0,"操作成功,任务加入待执行队列",""); return successful(0,"操作成功,任务加入待执行队列,详情请在订单加工管理下当前任务列表查看!","");
} }
@PostMapping(value = "mainCurrentTaskNow") @PostMapping(value = "mainCurrentTaskNow")

View File

@ -165,7 +165,7 @@ public class OrderInfoServiceImpl extends BaseService implements OrderInfoServic
BeanUtils.copyProperties(byId, build); BeanUtils.copyProperties(byId, build);
R<OrderInfoVo> info = getTaskInfoByIdenCardNum(build.getIdenCardNum()); R<OrderInfoVo> info = getTaskInfoByIdenCardNum(build.getIdenCardNum());
build.setFinishWeight(info.getData().getFinishWeight()); build.setFinishWeight(info.getData().getFinishWeight());
build.setFinishQuantity(info.getData().getQuantity()); build.setFinishQuantity(info.getData().getFinishQuantity());
build.setWaitWeight(info.getData().getWaitWeight()); build.setWaitWeight(info.getData().getWaitWeight());
build.setWaitQuantity(info.getData().getWaitQuantity()); build.setWaitQuantity(info.getData().getWaitQuantity());
build.setReProcessQuantity(info.getData().getReProcessQuantity()); build.setReProcessQuantity(info.getData().getReProcessQuantity());

View File

@ -1390,9 +1390,9 @@ public class AsynRunTaskService extends BaseService {
//获取RGV1当前位置 //获取RGV1当前位置
Double rgv1CurrPosition = RGVCurrPosition(1); Double rgv1CurrPosition = RGVCurrPosition(1);
//两辆小车是否冲突 //两辆小车是否冲突
Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, currTask.getStartPosition(), currTask.getTargetPosition(), rgv1CurrPosition); Boolean conflictBoolean = taskDistanceUtils.conflictForVehicle(vehicleId, startPosition, targetPosition, rgv1CurrPosition);
if (conflictBoolean){ if (conflictBoolean){
Integer status = moveRgv(1, currTaskId, 39,0); Integer status = moveRgv(1, currTaskId, 12,0);
logger.info(status.toString()); logger.info(status.toString());
if (status!=1){ if (status!=1){
logger.info("===执行任务:"+currTaskId+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12执行失败==="); logger.info("===执行任务:"+currTaskId+" 时车辆位置冲突,执行车辆位移任务,车辆"+anotherVehicleId+"移动到点位12执行失败===");