fix: 修复信号转换异常,添加堆垛机申请点位路由校验

This commit is contained in:
yanps
2025-02-11 09:46:03 +08:00
parent 5bd22a1c18
commit 9875a5d660
8 changed files with 176 additions and 63 deletions

View File

@@ -184,8 +184,8 @@ public class TwoNDCSocketConnectionAutoRun extends AbstractAutoRunnable {
if (ObjectUtil.isEmpty(inst)) {
log.info("未找到指令号{}对应的指令", ikey);
} else {
if("1".equals(inst.getInstruction_type()) || "2".equals(inst.getInstruction_type()) || "3".equals(inst.getInstruction_type())) {
String agvcar = inst.getCarno();
String agvcar = inst.getCarno();
if(StrUtil.isNotEmpty(agvcar) && !StrUtil.equals(agvcar,"0")) {
Device agvDevice = deviceAppService.findDeviceByCode(agvcar);
if (agvDevice != null) {
if (agvDevice.getDeviceDriver() instanceof AgvNdcTwoDeviceDriver) {