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