Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -366,7 +366,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv
|
||||
if (response == null || response.getStatus() == 200) {
|
||||
LuceneLogDto logDto2 = LuceneLogDto.builder()
|
||||
.device_code(device_code)
|
||||
.content("木箱入库申请异常位任务,接口返回:" + response.body())
|
||||
.content("木箱入库申请异常位任务,接口返回:" + response)
|
||||
.build();
|
||||
luceneExecuteLogService.deviceExecuteLog(logDto2);
|
||||
}
|
||||
|
||||
@@ -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_container_type, "下发托盘类型", "DB102.B8"));
|
||||
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_barcode, "下发木箱条码", "DB601.STRING1.50"));
|
||||
return list;
|
||||
|
||||
@@ -460,7 +460,7 @@ public class ReturnGoodManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
list.add(map5);
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(interactionJsonDTO.getLength())) {
|
||||
map6.put("code", "to_lenght");
|
||||
map6.put("code", "to_length");
|
||||
map6.put("value", interactionJsonDTO.getLength());
|
||||
list.add(map6);
|
||||
}
|
||||
|
||||
@@ -428,9 +428,15 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
||||
int phase = agvNdcTwoDeviceDriver.getPhase();
|
||||
if (phase == 0x03 || phase == 0x05 || phase == 0x08) {
|
||||
StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver;
|
||||
Device deviceByCode = deviceAppService.findDeviceByCode(device_code);
|
||||
if (deviceByCode.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) {
|
||||
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) deviceByCode.getDeviceDriver();
|
||||
Device device_k = deviceAppService.findDeviceByCode(device_code + "_K");
|
||||
Device device_m = deviceAppService.findDeviceByCode(device_code + "_M");
|
||||
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.setTask_code(task_code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user