【实训步骤对象】
This commit is contained in:
parent
b6fd23d036
commit
f9276e2632
@ -83,17 +83,17 @@ public class Step2 {
|
||||
this.simulationMember = simulation.getSimulationMemberById(vo.getMemberId());
|
||||
}
|
||||
this.operations = vo.getOperations().stream().map(o -> {
|
||||
Valuable t = null;
|
||||
if (o.getTriggerCondition() != null) {
|
||||
t = o.getTriggerCondition().convert2BO(simulation.getRepository());
|
||||
}
|
||||
Valuable c = null;
|
||||
if (o.getCompletionCondition() != null) {
|
||||
c = o.getCompletionCondition().convert2BO(simulation.getRepository());
|
||||
}
|
||||
if (o instanceof Operation2VO.SimOperation2VO) {
|
||||
return new Operation2.SimOperation2((Operation2VO.SimOperation2VO) o, simulation);
|
||||
} else {
|
||||
Valuable t = null;
|
||||
if (o.getTriggerCondition() != null) {
|
||||
t = o.getTriggerCondition().convert2BO(simulation.getRepository());
|
||||
}
|
||||
Valuable c = null;
|
||||
if (o.getCompletionCondition() != null) {
|
||||
c = o.getCompletionCondition().convert2BO(simulation.getRepository());
|
||||
}
|
||||
return new Operation2.ClientOperation2(t, c);
|
||||
}
|
||||
}).collect(Collectors.toList());
|
||||
|
Loading…
Reference in New Issue
Block a user