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