修复直拆直码只生成空托任务
This commit is contained in:
@@ -707,8 +707,7 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
||||
case 6:
|
||||
//码垛完成
|
||||
if (!requireSucess) {
|
||||
applyEmpty();
|
||||
if (resultSucess) {
|
||||
if (applyEmpty()) {
|
||||
palletizing();
|
||||
}
|
||||
}
|
||||
@@ -1135,13 +1134,14 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
||||
json.put("material_code",material);
|
||||
|
||||
HttpResponse result = acsToWmsService.applyTaskManipulatorToWms(json);
|
||||
if (ObjectUtil.isNotEmpty(result)) {
|
||||
if (result.getStatus() == 200) {
|
||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||
if ("200".equals(jsonObject.getString("status"))) {
|
||||
this.writing(this.mode);
|
||||
this.setRequireSucess(true);
|
||||
}
|
||||
}
|
||||
result.close();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1264,14 +1264,17 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
||||
json.put("device_code",demoList.get(put_station-1).replace("\"",""));
|
||||
json.put("type","4");
|
||||
HttpResponse result = acsToWmsService.lnshApplyTaskToWms(json);
|
||||
if (ObjectUtil.isNotEmpty(result)) {
|
||||
if (result.getStatus() == 200) {
|
||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||
if ("200".equals(jsonObject.getString("status"))) {
|
||||
this.writing(8);
|
||||
this.setResultSucess(true);
|
||||
this.setRequireSucess(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
result.close();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
private Date instruction_require_time = new Date();
|
||||
private Date instruction_finished_time = new Date();
|
||||
|
||||
private int instruction_require_time_out =3000;
|
||||
private int instruction_require_time_out;
|
||||
boolean requireSucess = false;
|
||||
|
||||
boolean resultSucess = false;
|
||||
@@ -729,8 +729,7 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
case 6:
|
||||
//码垛完成
|
||||
if (!requireSucess) {
|
||||
applyEmpty();
|
||||
if (resultSucess) {
|
||||
if (applyEmpty()) {
|
||||
palletizing();
|
||||
}
|
||||
}
|
||||
@@ -1369,13 +1368,14 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
json.put("material_code",material);
|
||||
|
||||
HttpResponse result = acsToWmsService.applyTaskManipulatorToWms(json);
|
||||
if (ObjectUtil.isNotEmpty(result)) {
|
||||
if (result.getStatus() == 200) {
|
||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||
if ("200".equals(jsonObject.getString("status"))) {
|
||||
this.writing(this.mode);
|
||||
this.setRequireSucess(true);
|
||||
}
|
||||
}
|
||||
result.close();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1498,14 +1498,17 @@ public class RljnPackagePalletSplitManipulatorDeviceDriver extends AbstractOpcDe
|
||||
json.put("device_code",demoList.get(put_station-1).replace("\"",""));
|
||||
json.put("type","4");
|
||||
HttpResponse result = acsToWmsService.lnshApplyTaskToWms(json);
|
||||
if (ObjectUtil.isNotEmpty(result)) {
|
||||
if (result.getStatus() == 200) {
|
||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||
if ("200".equals(jsonObject.getString("status"))) {
|
||||
this.writing(8);
|
||||
this.setResultSucess(true);
|
||||
this.setRequireSucess(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
result.close();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user