rev:自动完成时更改物料来源
This commit is contained in:
@@ -783,6 +783,7 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
|
|||||||
jo1.put("material_type", dto.getMaterial());
|
jo1.put("material_type", dto.getMaterial());
|
||||||
jo1.put("batch", dto.getBatch());
|
jo1.put("batch", dto.getBatch());
|
||||||
jo1.put("vehicle_code", dto.getVehicle_code());
|
jo1.put("vehicle_code", dto.getVehicle_code());
|
||||||
|
jo1.put("source_device", dto.getStart_device_code());
|
||||||
|
|
||||||
deviceService.changeDeviceStatus(jo1);
|
deviceService.changeDeviceStatus(jo1);
|
||||||
LampThreecolorDeviceDriver lampThreecolorDeviceDriver;
|
LampThreecolorDeviceDriver lampThreecolorDeviceDriver;
|
||||||
|
|||||||
@@ -109,11 +109,11 @@ public class QueryXZAgvTaskStatus {
|
|||||||
}
|
}
|
||||||
} else if ("STOPPED".equals(state) || "FAILED".equals(state) || "Error".equals(state)) {
|
} else if ("STOPPED".equals(state) || "FAILED".equals(state) || "Error".equals(state)) {
|
||||||
if (inst != null) {
|
if (inst != null) {
|
||||||
// inst.setInstruction_status("1");
|
inst.setInstruction_status("1");
|
||||||
// instructionService.update(inst);
|
instructionService.update(inst);
|
||||||
//任务失败时取消指令和任务
|
//任务失败时取消指令和任务
|
||||||
instructionService.cancel(inst.getInstruction_id());
|
// instructionService.cancel(inst.getInstruction_id());
|
||||||
taskService.cancel(inst.getTask_id());
|
// taskService.cancel(inst.getTask_id());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// else if ("STOPPED".equals(state)){
|
// else if ("STOPPED".equals(state)){
|
||||||
|
|||||||
Reference in New Issue
Block a user