【结束实训时,不存在实训BUG】
This commit is contained in:
parent
9e42a4ce68
commit
db4a3f10c8
@ -240,12 +240,12 @@ public class Training2Service {
|
||||
throw new SimulationException(SimulationExceptionType.Invalid_Operation, "无权限操作实训");
|
||||
}
|
||||
Training2 training2 = simulation.getTraining2();
|
||||
if (training2 == null) {
|
||||
throw new SimulationException(SimulationExceptionType.Invalid_Operation, "实训数据不存在");
|
||||
}
|
||||
simulation.removeJob(SCORING_JOB_NAME); //移除打分监视任务
|
||||
if (training2 != null) {
|
||||
training2.finish();
|
||||
training2.mark();
|
||||
}
|
||||
simulation.removeJob(SCORING_JOB_NAME); //移除打分监视任务
|
||||
simulation.removeJob(EXECUTE_JOB_NAME); //移除实训执行任务
|
||||
// 暂停仿真
|
||||
simulationLifeCycleService.pause(simulation);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user