【综合演练模式转换不再做自动同意操作】
This commit is contained in:
parent
eb81ea59dc
commit
b5c6f7a9a2
@ -467,8 +467,14 @@ public class SimulationRobotService {
|
|||||||
if (training2 != null && training2.isScene() && StringUtils.hasText(training2.getBgSceneJson()) && !training2.isRunning()) {
|
if (training2 != null && training2.isScene() && StringUtils.hasText(training2.getBgSceneJson()) && !training2.isRunning()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (simulation.getBuildParams().getWorkParamVO().getDomConfig().isJoint()) { // 综合演练
|
||||||
|
return;
|
||||||
|
}
|
||||||
simulation.getRepository().getStationList().stream()
|
simulation.getRepository().getStationList().stream()
|
||||||
.filter(station -> station.getOperationModeApplication() != null && station.getOperationModeApplication().isRobotApproval())
|
// 申请不为空、距离申请时间超过5s、审批人全部为机器人
|
||||||
|
.filter(station -> station.getOperationModeApplication() != null
|
||||||
|
&& simulation.getCorrectSystemTime().isAfter(station.getOperationModeApplication().getApplyDateTime().plusSeconds(5))
|
||||||
|
&& station.getOperationModeApplication().isRobotApproval())
|
||||||
.forEach(station -> atsStationService.doOperationModeSwitch(station));
|
.forEach(station -> atsStationService.doOperationModeSwitch(station));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user