|
@@ -237,7 +237,7 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
|
throw new CustomException("该卷已被绑定,不允许修改发布状态为未发布");
|
|
|
}
|
|
|
}
|
|
|
- if((entity.getDoType()!=2)&&(entity.getSimulateStatus()==1)){
|
|
|
+ if(Validator.isNotEmpty(entity.getSimulateStatus())&&(entity.getDoType()!=2)&&(entity.getSimulateStatus()==1)){
|
|
|
throw new CustomException("非考试类型无法开启模拟随机做题");
|
|
|
}
|
|
|
if(Validator.isNotEmpty(entity.getSimulateConfig())){
|