fix 优化ndc交互

This commit is contained in:
USER-20220102CG\noblelift
2023-06-07 09:16:02 +08:00
parent 12cee738cf
commit 8e922888f5
2 changed files with 10 additions and 5 deletions

View File

@@ -248,10 +248,15 @@ public class TwoNDCSocketConnectionAutoRun extends AbstractAutoRunnable {
} else {
device = deviceAppService.findDeviceByCode(Integer.toString(arr[20]));
}
if (device.getDeviceDriver() instanceof AgvNdcTwoDeviceDriver) {
agvNdcTwoDeviceDriver = (AgvNdcTwoDeviceDriver) device.getDeviceDriver();
agvNdcTwoDeviceDriver.processSocket(arr);
if(ObjectUtil.isNotEmpty(device)){
if (device.getDeviceDriver() instanceof AgvNdcTwoDeviceDriver) {
agvNdcTwoDeviceDriver = (AgvNdcTwoDeviceDriver) device.getDeviceDriver();
agvNdcTwoDeviceDriver.processSocket(arr);
}
} else {
log.info("当前phase"+ phase +"未找到对应设备");
}
}
if (!ObjectUtil.isEmpty(data)) {
write(data);

View File

@@ -667,7 +667,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
JSONObject json = new JSONObject();
json.put("task_code", task_code);
json.put("ext_task_id", ext_task_id);
json.put("message", "存在任务id为"+taskDto.getTask_id()+"相同的任务号:" + task_code);
json.put("message", "存在相同的任务号:" + task_code);
errArr.add(json);
continue;
}
@@ -677,7 +677,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
JSONObject json = new JSONObject();
json.put("task_code", task_code);
json.put("ext_task_id", ext_task_id);
json.put("message", "已存在任务id"+vehicle_dto.getTask_id()+"托盘号:" + vehicle_code);
json.put("message", "已存在任务编号"+vehicle_dto.getTask_code()+"托盘号:" + vehicle_code);
errArr.add(json);
continue;
}