修改点位状态

This commit is contained in:
liuhanqing
2025-08-13 11:06:35 +08:00
parent a1ad8a1535
commit 5f753d8200

View File

@@ -325,6 +325,10 @@ public class ApiServiceImpl implements IApiService {
agvQueueService.insertHistory(agvQueue.getReqCode());
//删除队列
agvQueueService.deleteAgvQueueByReqCode(agvQueue.getReqCode());
//修改点位状态
WcsPort wcsPort = wcsPortService.selectWcsPortByPortCode(agvQueue.getPositionCode2());
wcsPort.setStatus("1");
wcsPortService.updateWcsPort(wcsPort);
log.info("【AGV任务结束】任务号:{}", taskCode);
}
@@ -355,6 +359,12 @@ public class ApiServiceImpl implements IApiService {
takeCompletedParam.put("portCode",agvQueue.getPositionCode1());
takeCompletedParam.put("wmsType",agvQueue.getWmsTaskType());
takeCompleted(takeCompletedParam);
if ("3".equals(agvQueue.getWmsTaskType())){
//修改点位状态
WcsPort wcsPort = wcsPortService.selectWcsPortByPortCode(agvQueue.getPositionCode1());
wcsPort.setStatus("0");
wcsPortService.updateWcsPort(wcsPort);
}
break;
default:
log.info("未知方法");