|
@ -747,6 +747,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("apply_put_full_vehicle") + "apply_put_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("apply_put_full_vehicle") + "apply_put_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message)); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message)); |
|
@ -780,6 +781,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("apply_put_empty_vehicle") + "apply_put_empty_vehicle 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("apply_put_empty_vehicle") + "apply_put_empty_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -811,6 +813,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("apply_take_empty_vehicle") + "apply_take_empty_vehicle 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("apply_take_empty_vehicle") + "apply_take_empty_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -856,6 +859,9 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
for (int i = 0; i < getDeviceCodeList.size(); i++) { |
|
|
for (int i = 0; i < getDeviceCodeList.size(); i++) { |
|
|
ApplyDeviceDto applyDeviceDto=new ApplyDeviceDto(); |
|
|
ApplyDeviceDto applyDeviceDto=new ApplyDeviceDto(); |
|
|
Device getDevice = deviceAppService.findDeviceByCode(getDeviceCodeList.get(i).toString()); |
|
|
Device getDevice = deviceAppService.findDeviceByCode(getDeviceCodeList.get(i).toString()); |
|
|
|
|
|
if(ObjectUtil.isEmpty(getDevice)){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
if(getDevice.getDeviceDriver() instanceof LnshPalletizingManipulatorSiteDeviceDriver){ |
|
|
if(getDevice.getDeviceDriver() instanceof LnshPalletizingManipulatorSiteDeviceDriver){ |
|
|
lnshPalletizingManipulatorSiteDeviceDriver=(LnshPalletizingManipulatorSiteDeviceDriver) getDevice.getDeviceDriver(); |
|
|
lnshPalletizingManipulatorSiteDeviceDriver=(LnshPalletizingManipulatorSiteDeviceDriver) getDevice.getDeviceDriver(); |
|
|
applyDeviceDto.setQty(String.valueOf(lnshPalletizingManipulatorSiteDeviceDriver.getEncoder_qty())); |
|
|
applyDeviceDto.setQty(String.valueOf(lnshPalletizingManipulatorSiteDeviceDriver.getEncoder_qty())); |
|
@ -877,6 +883,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("apply_take_full_vehicle") + "apply_take_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("apply_take_full_vehicle") + "apply_take_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -909,6 +916,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle") + "apply_force_take_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle") + "apply_force_take_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -941,6 +949,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle_in_storage") + "apply_force_take_full_vehicle_in_storage 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle_in_storage") + "apply_force_take_full_vehicle_in_storage 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -974,6 +983,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("barcode_success_apply") + "barcode_success_apply 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("barcode_success_apply") + "barcode_success_apply 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -1009,6 +1019,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("get_vehicle_info") + "get_vehicle_info 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("get_vehicle_info") + "get_vehicle_info 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -1040,6 +1051,7 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("force_no_package") + "force_no_package 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("force_no_package") + "force_no_package 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -1068,9 +1080,10 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
|
|
|
|
|
|
if (resp.getCode() == 200) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(200); |
|
|
this.writing(200); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(false); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
|
|
|
this.setIserror(true); |
|
|
message = RequestMethodEnum.getName("apply_labelling") + "apply_labelling 接口请求失败" + resp.getMessage();; |
|
|
message = RequestMethodEnum.getName("apply_labelling") + "apply_labelling 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -1240,7 +1253,13 @@ public class LnshPalletizingManipulatorSiteDeviceDriver extends AbstractOpcDevic |
|
|
default: |
|
|
default: |
|
|
action = "禁止取放"; |
|
|
action = "禁止取放"; |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.move == 0) { |
|
|
|
|
|
move = "无货"; |
|
|
|
|
|
hasGoods = false; |
|
|
|
|
|
} else { |
|
|
|
|
|
move = "有货"; |
|
|
|
|
|
hasGoods = true; |
|
|
|
|
|
} |
|
|
switch (this.io_action) { |
|
|
switch (this.io_action) { |
|
|
case 1: |
|
|
case 1: |
|
|
io_action = "允许进入"; |
|
|
io_action = "允许进入"; |
|
|