嘉耐更新
This commit is contained in:
@@ -815,7 +815,6 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
|||||||
if (ObjectUtil.isNotEmpty(result)) {
|
if (ObjectUtil.isNotEmpty(result)) {
|
||||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||||
this.writing(this.mode);
|
|
||||||
ProduceshiftorderDto dto = produceshiftorderService.findByCode(order_No);
|
ProduceshiftorderDto dto = produceshiftorderService.findByCode(order_No);
|
||||||
if (this.mode == 4) {
|
if (this.mode == 4) {
|
||||||
dto.setOrder_status("0");
|
dto.setOrder_status("0");
|
||||||
@@ -823,10 +822,11 @@ public class LnshPackagePalletManipulatorDeviceDriver extends AbstractOpcDeviceD
|
|||||||
dto.setOrder_status("2");
|
dto.setOrder_status("2");
|
||||||
}
|
}
|
||||||
produceshiftorderService.update(dto);
|
produceshiftorderService.update(dto);
|
||||||
|
this.writing(this.mode);
|
||||||
|
this.setRequireSucess(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setRequireSucess(true);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -853,7 +853,6 @@ public class LnshSplitManipulatorDeviceDriver extends AbstractOpcDeviceDriver im
|
|||||||
if (ObjectUtil.isNotEmpty(result)) {
|
if (ObjectUtil.isNotEmpty(result)) {
|
||||||
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
JSONObject jsonObject = JSONObject.parseObject(result.body());
|
||||||
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
if (result.getStatus() == 200 && StrUtil.equals(jsonObject.getString("status"),"200")) {
|
||||||
this.writing(this.mode);
|
|
||||||
ProduceshiftorderDto dto = produceshiftorderService.findByCode(order_No);
|
ProduceshiftorderDto dto = produceshiftorderService.findByCode(order_No);
|
||||||
if (this.mode == 4) {
|
if (this.mode == 4) {
|
||||||
dto.setOrder_status("0");
|
dto.setOrder_status("0");
|
||||||
@@ -861,10 +860,10 @@ public class LnshSplitManipulatorDeviceDriver extends AbstractOpcDeviceDriver im
|
|||||||
dto.setOrder_status("2");
|
dto.setOrder_status("2");
|
||||||
}
|
}
|
||||||
produceshiftorderService.update(dto);
|
produceshiftorderService.update(dto);
|
||||||
|
this.writing(this.mode);
|
||||||
|
this.setRequireSucess(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setRequireSucess(true);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -926,8 +925,8 @@ public class LnshSplitManipulatorDeviceDriver extends AbstractOpcDeviceDriver im
|
|||||||
|
|
||||||
this.writing(this.mode);
|
this.writing(this.mode);
|
||||||
this.writing("to_material",material_code);
|
this.writing("to_material",material_code);
|
||||||
|
this.setRequireSucess(true);
|
||||||
}
|
}
|
||||||
requireSucess = true;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user