fix: 修复退货入库行架下发信号失败

This commit is contained in:
yanps
2024-04-18 17:34:59 +08:00
parent dc10c8ffc3
commit df3edbef76
4 changed files with 13 additions and 7 deletions

View File

@@ -366,7 +366,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
if (response == null || response.getStatus() == 200) { if (response == null || response.getStatus() == 200) {
LuceneLogDto logDto2 = LuceneLogDto.builder() LuceneLogDto logDto2 = LuceneLogDto.builder()
.device_code(device_code) .device_code(device_code)
.content("木箱入库申请异常位任务,接口返回:" + response.body()) .content("木箱入库申请异常位任务,接口返回:" + response)
.build(); .build();
luceneExecuteLogService.deviceExecuteLog(logDto2); luceneExecuteLogService.deviceExecuteLog(logDto2);
} }

View File

@@ -72,7 +72,7 @@ public class ItemProtocol {
/** /**
*木箱宽度 *木箱宽度
*/ */
public static String item_to_weight = "to_weight"; public static String item_to_width = "to_width";
/** /**
*木箱高度 *木箱高度
*/ */
@@ -209,7 +209,7 @@ public class ItemProtocol {
list.add(new ItemDto(item_to_onset, "下发起始站", "DB2.W2")); list.add(new ItemDto(item_to_onset, "下发起始站", "DB2.W2"));
list.add(new ItemDto(item_to_container_type, "下发托盘类型", "DB102.B8")); list.add(new ItemDto(item_to_container_type, "下发托盘类型", "DB102.B8"));
list.add(new ItemDto(item_to_length, "木箱长度", "DB601.W14")); list.add(new ItemDto(item_to_length, "木箱长度", "DB601.W14"));
list.add(new ItemDto(item_to_weight, "木箱宽度", "DB601.W16")); list.add(new ItemDto(item_to_width, "木箱宽度", "DB601.W16"));
list.add(new ItemDto(item_to_height, "木箱高度", "DB601.W18")); list.add(new ItemDto(item_to_height, "木箱高度", "DB601.W18"));
list.add(new ItemDto(item_to_barcode, "下发木箱条码", "DB601.STRING1.50")); list.add(new ItemDto(item_to_barcode, "下发木箱条码", "DB601.STRING1.50"));
return list; return list;

View File

@@ -460,7 +460,7 @@ public class ReturnGoodManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
list.add(map5); list.add(map5);
} }
if (ObjectUtil.isNotEmpty(interactionJsonDTO.getLength())) { if (ObjectUtil.isNotEmpty(interactionJsonDTO.getLength())) {
map6.put("code", "to_lenght"); map6.put("code", "to_length");
map6.put("value", interactionJsonDTO.getLength()); map6.put("value", interactionJsonDTO.getLength());
list.add(map6); list.add(map6);
} }

View File

@@ -428,9 +428,15 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
int phase = agvNdcTwoDeviceDriver.getPhase(); int phase = agvNdcTwoDeviceDriver.getPhase();
if (phase == 0x03 || phase == 0x05 || phase == 0x08) { if (phase == 0x03 || phase == 0x05 || phase == 0x08) {
StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver; StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver;
Device deviceByCode = deviceAppService.findDeviceByCode(device_code); Device device_k = deviceAppService.findDeviceByCode(device_code + "_K");
if (deviceByCode.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) { Device device_m = deviceAppService.findDeviceByCode(device_code + "_M");
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) deviceByCode.getDeviceDriver(); if (device_k.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) {
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) device_k.getDeviceDriver();
standardOrdinarySiteDeviceDriver.setOption(Integer.parseInt(option));
standardOrdinarySiteDeviceDriver.setTask_code(task_code);
}
if (device_m.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) {
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) device_m.getDeviceDriver();
standardOrdinarySiteDeviceDriver.setOption(Integer.parseInt(option)); standardOrdinarySiteDeviceDriver.setOption(Integer.parseInt(option));
standardOrdinarySiteDeviceDriver.setTask_code(task_code); standardOrdinarySiteDeviceDriver.setTask_code(task_code);
} }