【综合演练模式转换不再做自动同意操作】

This commit is contained in:
weizhihong 2023-02-20 15:05:35 +08:00
parent eb81ea59dc
commit b5c6f7a9a2

View File

@ -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));
} }