diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/SimulationServiceImpl.java b/src/main/java/club/joylink/rtss/simulation/cbtc/SimulationServiceImpl.java index 9eb647264..47ac3b242 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/SimulationServiceImpl.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/SimulationServiceImpl.java @@ -196,17 +196,17 @@ public class SimulationServiceImpl implements SimulationService { @Override public String createSimulation(Long mapFunctionId, LoginUserInfoVO loginInfo) { MapFunctionVO mapFunctionVO = rtsMapFunctionService.get(mapFunctionId); - List userExistGroup = this.groupSimulationService.getUserRunningSimulationGroups(loginInfo.getAccountVO()); - if(!CollectionUtils.isEmpty(userExistGroup)){ - String group = userExistGroup.get(0); - Simulation simulation = this.groupSimulationService.getSimulationByGroup(group); - if(Objects.equals(simulation.getMapFunctionId(), mapFunctionId)){ - BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(mapFunctionVO.getParamVO().getDomConfig().isHasExam(),"考试只能单独用户操作"); - return group; - }else{ - BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(!CollectionUtils.isEmpty(userExistGroup),"用户重复创建仿真"); - } - } +// List userExistGroup = this.groupSimulationService.getUserRunningSimulationGroups(loginInfo.getAccountVO()); +// if(!CollectionUtils.isEmpty(userExistGroup)){ +// String group = userExistGroup.get(0); +// Simulation simulation = this.groupSimulationService.getSimulationByGroup(group); +// if(Objects.equals(simulation.getMapFunctionId(), mapFunctionId)){ +// BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(mapFunctionVO.getParamVO().getDomConfig().isHasExam(),"考试只能单独用户操作"); +// return group; +// }else{ +// BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(!CollectionUtils.isEmpty(userExistGroup),"用户重复创建仿真"); +// } +// } Long mapId = mapFunctionVO.getMapId();