指令执行时更新指令当前执行设备
This commit is contained in:
@@ -163,6 +163,7 @@ public class OvenGantryManipulatorDeviceDriver extends AbstractOpcDeviceDriver i
|
||||
if (inst1 != null) {
|
||||
if (StrUtil.equals(inst1.getInstruction_status(), "0")) {
|
||||
inst1.setInstruction_status("1");
|
||||
inst1.setExecute_device_code(this.device_code);
|
||||
instructionService.update(inst1);
|
||||
// TaskDto taskDto = taskserver.findByCodeFromCache(inst1.getTask_code());
|
||||
// if (ObjectUtil.isNotEmpty(taskDto)) {
|
||||
|
||||
@@ -213,6 +213,7 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
if (StrUtil.equals(inst1.getInstruction_status(), "0")) {
|
||||
//当前执行步骤为更新任务状态
|
||||
inst1.setInstruction_status("1");
|
||||
inst1.setExecute_device_code(this.getDevice_code());
|
||||
instructionService.update(inst1);
|
||||
// TaskDto taskDto = taskserver.findByCodeFromCache(inst1.getTask_code());
|
||||
// if (!ObjectUtil.isEmpty(taskDto)) {
|
||||
@@ -240,6 +241,7 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
//当前指令更新状态
|
||||
now_steps_type2 = 1;
|
||||
inst2.setInstruction_status("1");
|
||||
inst2.setExecute_device_code(this.device_code);
|
||||
instructionService.update(inst2);
|
||||
// TaskDto taskDto = taskserver.findByCodeFromCache(inst2.getTask_code());
|
||||
// if (!ObjectUtil.isEmpty(taskDto)) {
|
||||
@@ -266,6 +268,7 @@ public class SlitTwoManipulatorDeviceDriver extends AbstractOpcDeviceDriver impl
|
||||
if (StrUtil.equals(inst2.getInstruction_status(), "0")) {
|
||||
//当前指令更新状态
|
||||
inst2.setInstruction_status("1");
|
||||
inst2.setExecute_device_code(this.device_code);
|
||||
instructionService.update(inst2);
|
||||
// TaskDto taskDto = taskserver.findByCodeFromCache(inst2.getTask_code());
|
||||
// if (!ObjectUtil.isEmpty(taskDto)) {
|
||||
|
||||
Reference in New Issue
Block a user