更新
This commit is contained in:
@@ -194,21 +194,19 @@ public class SiemensConveyorDeviceDriver extends AbstractOpcDeviceDriver impleme
|
|||||||
instructionService.update(inst);
|
instructionService.update(inst);
|
||||||
logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈执行中状态,反馈成功,指令号:" + task);
|
logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈执行中状态,反馈成功,指令号:" + task);
|
||||||
}
|
}
|
||||||
if (mode == 2 || mode == 8) {
|
if (StrUtil.equals(inst.getInstruction_status(), "1")) {
|
||||||
if (StrUtil.equals(inst.getInstruction_status(), "1")) {
|
if (StrUtil.equals(this.getDeviceCode(), inst.getNext_device_code())) {
|
||||||
if (StrUtil.equals(this.getDeviceCode(), inst.getNext_device_code())) {
|
vehicle_code = inst.getVehicle_code();
|
||||||
vehicle_code = inst.getVehicle_code();
|
inst.setExecute_device_code(this.device_code);
|
||||||
|
finish_instruction();
|
||||||
|
logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task);
|
||||||
|
} else {
|
||||||
|
if (!StrUtil.equals(inst.getExecute_code(), this.device_code)) {
|
||||||
inst.setExecute_device_code(this.device_code);
|
inst.setExecute_device_code(this.device_code);
|
||||||
finish_instruction();
|
instructionService.update(inst);
|
||||||
logServer.deviceExecuteLog(device_code, "", "", "入库输送线任务开始反馈完成状态,反馈成功,指令号:" + task);
|
|
||||||
} else {
|
|
||||||
if (!StrUtil.equals(inst.getExecute_code(), this.device_code)) {
|
|
||||||
inst.setExecute_device_code(this.device_code);
|
|
||||||
instructionService.update(inst);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// logServer.deviceExecuteLog(device_code, "", "", "输送线任务开始反馈任务状态,反馈失败,查询不到指令号:" + task);
|
// logServer.deviceExecuteLog(device_code, "", "", "输送线任务开始反馈任务状态,反馈失败,查询不到指令号:" + task);
|
||||||
|
|||||||
Reference in New Issue
Block a user