|
@ -202,7 +202,7 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
List toInstructions; |
|
|
List toInstructions; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mode > 2) { |
|
|
if (mode > 2 && !requireSucess) { |
|
|
if (ObjectUtil.isNotEmpty(this.device.getExtraValue().get(String.valueOf(mode)))) { |
|
|
if (ObjectUtil.isNotEmpty(this.device.getExtraValue().get(String.valueOf(mode)))) { |
|
|
String modethod = this.device.getExtraValue().get(String.valueOf(mode)).toString(); |
|
|
String modethod = this.device.getExtraValue().get(String.valueOf(mode)).toString(); |
|
|
try { |
|
|
try { |
|
@ -486,12 +486,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("apply_put_full_vehicle") + "apply_put_full_vehicle 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("apply_put_full_vehicle") + "apply_put_full_vehicle 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
Resp resp = acsToWmsService.applyTask(request); |
|
|
Resp resp = acsToWmsService.applyTask(request); |
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("apply_put_full_vehicle") + "apply_put_full_vehicle 接口请求失败" + resp.getComment();; |
|
|
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)); |
|
|
return true; |
|
|
return true; |
|
@ -519,12 +519,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("apply_put_empty_vehicle") + "apply_put_empty_vehicle 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("apply_put_empty_vehicle") + "apply_put_empty_vehicle 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("apply_put_empty_vehicle") + "apply_put_empty_vehicle 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("apply_put_empty_vehicle") + "apply_put_empty_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -551,12 +551,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("apply_take_empty_vehicle") + "apply_take_empty_vehicle 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("apply_take_empty_vehicle") + "apply_take_empty_vehicle 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("apply_take_empty_vehicle") + "apply_take_empty_vehicle 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("apply_take_empty_vehicle") + "apply_take_empty_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -584,12 +584,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("apply_take_full_vehicle") + "apply_take_full_vehicle 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("apply_take_full_vehicle") + "apply_take_full_vehicle 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("apply_take_full_vehicle") + "apply_take_full_vehicle 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("apply_take_full_vehicle") + "apply_take_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -616,12 +616,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle") + "apply_force_take_full_vehicle 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle") + "apply_force_take_full_vehicle 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle") + "apply_force_take_full_vehicle 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle") + "apply_force_take_full_vehicle 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -648,12 +648,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle_in_storage") + "apply_force_take_full_vehicle_in_storage 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle_in_storage") + "apply_force_take_full_vehicle_in_storage 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle_in_storage") + "apply_force_take_full_vehicle_in_storage 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("apply_force_take_full_vehicle_in_storage") + "apply_force_take_full_vehicle_in_storage 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -680,12 +680,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("barcode_sucess_apply") + "barcode_sucess_apply 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("barcode_sucess_apply") + "barcode_sucess_apply 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("barcode_sucess_apply") + "barcode_sucess_apply 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("barcode_sucess_apply") + "barcode_sucess_apply 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -712,12 +712,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("get_vehicle_info") + "get_vehicle_info 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("get_vehicle_info") + "get_vehicle_info 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("get_vehicle_info") + "get_vehicle_info 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("get_vehicle_info") + "get_vehicle_info 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -743,12 +743,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("force_no_package") + "force_no_package 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("force_no_package") + "force_no_package 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("force_no_package") + "force_no_package 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("force_no_package") + "force_no_package 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
@ -774,12 +774,12 @@ public class LnshStationDeviceDriver extends AbstractOpcDeviceDriver implements |
|
|
message = RequestMethodEnum.getName("apply_labelling") + "apply_labelling 接口请求LMS..."; |
|
|
message = RequestMethodEnum.getName("apply_labelling") + "apply_labelling 接口请求LMS..."; |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
lucene.deviceExecuteLog(new LuceneLogDto(this.device_code, message + "参数:" + JSON.toJSONString(request))); |
|
|
|
|
|
|
|
|
if (StrUtil.equals(resp.result, "true")) { |
|
|
if (resp.getCode() == 200) { |
|
|
this.writing(this.mode); |
|
|
this.writing(this.mode); |
|
|
this.setRequireSucess(true); |
|
|
this.setRequireSucess(true); |
|
|
} else { |
|
|
} else { |
|
|
this.writing(400); |
|
|
this.writing(400); |
|
|
message = RequestMethodEnum.getName("apply_labelling") + "apply_labelling 接口请求失败" + resp.getComment();; |
|
|
message = RequestMethodEnum.getName("apply_labelling") + "apply_labelling 接口请求失败" + resp.getMessage();; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} else { |
|
|
} else { |
|
|