回滚创建仿真的限制
This commit is contained in:
parent
19acb558c2
commit
877372b2cd
@ -196,17 +196,17 @@ public class SimulationServiceImpl implements SimulationService {
|
|||||||
@Override
|
@Override
|
||||||
public String createSimulation(Long mapFunctionId, LoginUserInfoVO loginInfo) {
|
public String createSimulation(Long mapFunctionId, LoginUserInfoVO loginInfo) {
|
||||||
MapFunctionVO mapFunctionVO = rtsMapFunctionService.get(mapFunctionId);
|
MapFunctionVO mapFunctionVO = rtsMapFunctionService.get(mapFunctionId);
|
||||||
List<String> userExistGroup = this.groupSimulationService.getUserRunningSimulationGroups(loginInfo.getAccountVO());
|
// List<String> userExistGroup = this.groupSimulationService.getUserRunningSimulationGroups(loginInfo.getAccountVO());
|
||||||
if(!CollectionUtils.isEmpty(userExistGroup)){
|
// if(!CollectionUtils.isEmpty(userExistGroup)){
|
||||||
String group = userExistGroup.get(0);
|
// String group = userExistGroup.get(0);
|
||||||
Simulation simulation = this.groupSimulationService.getSimulationByGroup(group);
|
// Simulation simulation = this.groupSimulationService.getSimulationByGroup(group);
|
||||||
if(Objects.equals(simulation.getMapFunctionId(), mapFunctionId)){
|
// if(Objects.equals(simulation.getMapFunctionId(), mapFunctionId)){
|
||||||
BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(mapFunctionVO.getParamVO().getDomConfig().isHasExam(),"考试只能单独用户操作");
|
// BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(mapFunctionVO.getParamVO().getDomConfig().isHasExam(),"考试只能单独用户操作");
|
||||||
return group;
|
// return group;
|
||||||
}else{
|
// }else{
|
||||||
BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(!CollectionUtils.isEmpty(userExistGroup),"用户重复创建仿真");
|
// BusinessExceptionAssertEnum.OPERATION_REPEAT.assertNotTrue(!CollectionUtils.isEmpty(userExistGroup),"用户重复创建仿真");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
Long mapId = mapFunctionVO.getMapId();
|
Long mapId = mapFunctionVO.getMapId();
|
||||||
|
Loading…
Reference in New Issue
Block a user