|
|
|
|
@ -2124,7 +2124,7 @@ public class ScheduledTasks { |
|
|
|
|
//立库输送线接驳点-入
|
|
|
|
|
String toLocation = ""; |
|
|
|
|
int agvTaskType = 0; |
|
|
|
|
BusinTaskExeBo exeBo = new BusinTaskExeBo(); |
|
|
|
|
// BusinTaskExeBo exeBo = new BusinTaskExeBo();
|
|
|
|
|
Long plcId = null; |
|
|
|
|
Long stkPlcId = null; |
|
|
|
|
|
|
|
|
|
@ -2141,9 +2141,6 @@ public class ScheduledTasks { |
|
|
|
|
//根据车型分配库位 先判断该任务是否已经分配了货位
|
|
|
|
|
Result<BaseLocationVo> locationVoResult = null; |
|
|
|
|
if (ObjectUtils.isEmpty(businDataTaskVo.getToRow())) { |
|
|
|
|
// locationVoResult = iBaseLocationService.assignEmptyLocation(vehicheModel, color,DateUtils.getDate(),businDataTaskGoodsVos);
|
|
|
|
|
// TODO: 2024/6/28 zjx
|
|
|
|
|
// locationVoResult = iBaseLocationService.assignEmptyLocationByStock(goodsNo, vehicheModel, DateUtils.getDate(), businDataTaskGoodsVos);
|
|
|
|
|
|
|
|
|
|
AssingEmptyLocBo emptyLocBo = new AssingEmptyLocBo(); |
|
|
|
|
emptyLocBo.setBatch(DateUtils.getDate()); |
|
|
|
|
@ -2186,13 +2183,6 @@ public class ScheduledTasks { |
|
|
|
|
BaseDevicePlcVo baseDevicePlcVo = baseLocationPlcMapper.selectBaseDevicePlc(pointQueryBo); |
|
|
|
|
stkPlcId = baseDevicePlcVo.getPlcId(); |
|
|
|
|
|
|
|
|
|
exeBo.setTaskCode(taskId); |
|
|
|
|
exeBo.setBusinDataTaskGoodsVo(businDataTaskGoodsVos); |
|
|
|
|
exeBo.setContainerId(containerId); |
|
|
|
|
exeBo.setBaseLocationVo(locationVo); |
|
|
|
|
exeBo.setTransNo("1"); |
|
|
|
|
exeBo.setTransQual("1"); |
|
|
|
|
|
|
|
|
|
//根据取货时的的点位拿到对应的交互点用作取货完成点
|
|
|
|
|
agvTaskType = Integer.valueOf(basePointDeviceVo.getIsDown()); |
|
|
|
|
if (businDataTaskVo.getTaskType().equals("7")) { |
|
|
|
|
@ -2226,11 +2216,6 @@ public class ScheduledTasks { |
|
|
|
|
BasePointDeviceVo pointDeviceout = basePointDeviceMapper.selectBasePointByGroupno(pointQueryBo); |
|
|
|
|
toLocation = pointDeviceout.getPointNo(); |
|
|
|
|
agvTaskType = Integer.valueOf(pointDeviceout.getIsDown()); |
|
|
|
|
exeBo.setTaskCode(taskId); |
|
|
|
|
exeBo.setBusinDataTaskGoodsVo(businDataTaskGoodsVos); |
|
|
|
|
exeBo.setContainerId(containerId); |
|
|
|
|
exeBo.setTransNo("1"); |
|
|
|
|
exeBo.setTransQual("1"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
@ -2242,11 +2227,6 @@ public class ScheduledTasks { |
|
|
|
|
BasePointDeviceVo pointDeviceout = basePointDeviceMapper.selectBasePointByGroupno(pointQueryBo); |
|
|
|
|
toLocation = pointDeviceout.getPointNo(); |
|
|
|
|
agvTaskType = Integer.valueOf(pointDeviceout.getIsDown()); |
|
|
|
|
exeBo.setTaskCode(taskId); |
|
|
|
|
exeBo.setBusinDataTaskGoodsVo(businDataTaskGoodsVos); |
|
|
|
|
exeBo.setContainerId(containerId); |
|
|
|
|
exeBo.setTransNo("1"); |
|
|
|
|
exeBo.setTransQual("1"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2296,20 +2276,6 @@ public class ScheduledTasks { |
|
|
|
|
if (booleanResult.getCode() == HttpStatus.SUCCESS.getCode()) { |
|
|
|
|
businDataTaskVo.setTaskPath(toLocation); |
|
|
|
|
businDataTaskVo.setTaskStatus(TaskStatusEnum.wait_callback.getValue()); |
|
|
|
|
|
|
|
|
|
//生成入库单
|
|
|
|
|
if (randome.equals("P01")) { |
|
|
|
|
// Result<String> stringResult = iPutInOutStorageService.exeTaskPutinStorage(exeBo);
|
|
|
|
|
|
|
|
|
|
//生成入库单成功
|
|
|
|
|
// if (stringResult.getCode() == HttpStatus.SUCCESS.getCode()) {
|
|
|
|
|
// businDataTaskVo.setTransId(stringResult.getData());
|
|
|
|
|
// } else {
|
|
|
|
|
// businDataTaskVo.setTaskStatus(TaskStatusEnum.err.getValue());
|
|
|
|
|
// businDataTaskVo.setExceptionMsg("生成入库单失败");
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//立库输送线PLCID
|
|
|
|
|
businDataTaskVo.setDpsNoOne(plcId); |
|
|
|
|
|