Merge remote-tracking branch 'origin/test-training2' into test-training2

This commit is contained in:
joylink_zhangsai 2023-02-20 17:26:46 +08:00
commit e7b817c2d4

View File

@ -470,7 +470,12 @@ public class SimulationRobotService {
if (training2 != null && training2.isScene() && StringUtils.hasText(training2.getBgSceneJson()) && !training2.isRunning()) {
return;
}
// 非单岗位一直等待角色同意
if (!simulation.getBuildParams().getWorkParamVO().getDomConfig().isSingleMember()) {
return;
}
simulation.getRepository().getStationList().stream()
// 申请不为空审批人全部为机器人
.filter(station -> station.getOperationModeApplication() != null && station.getOperationModeApplication().isRobotApproval())
.forEach(station -> atsStationService.doOperationModeSwitch(station));
}