|
@@ -251,19 +251,19 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
if((q1>0)&&(q1<entity.getSimulateConfig().getSingleChoice().getKnum())){
|
|
if((q1>0)&&(q1<entity.getSimulateConfig().getSingleChoice().getKnum())){
|
|
throw new CustomException("模拟配置单选题参数错误");
|
|
throw new CustomException("模拟配置单选题参数错误");
|
|
}
|
|
}
|
|
- if(entity.getSimulateConfig().getSingleChoice().getOrderNum()>3){
|
|
|
|
|
|
+ if(entity.getSimulateConfig().getSingleChoice().getOrderNum()>4){
|
|
throw new CustomException("模拟配置单选题参数错误");
|
|
throw new CustomException("模拟配置单选题参数错误");
|
|
}
|
|
}
|
|
if((q2>0)&&(q2<entity.getSimulateConfig().getMultipleChoice().getKnum())){
|
|
if((q2>0)&&(q2<entity.getSimulateConfig().getMultipleChoice().getKnum())){
|
|
throw new CustomException("模拟配置多选题参数错误");
|
|
throw new CustomException("模拟配置多选题参数错误");
|
|
}
|
|
}
|
|
- if(entity.getSimulateConfig().getMultipleChoice().getOrderNum()>3){
|
|
|
|
|
|
+ if(entity.getSimulateConfig().getMultipleChoice().getOrderNum()>4){
|
|
throw new CustomException("模拟配置多选题参数错误");
|
|
throw new CustomException("模拟配置多选题参数错误");
|
|
}
|
|
}
|
|
if((q3>0)&&(q3<entity.getSimulateConfig().getCaseQuestion().getKnum())){
|
|
if((q3>0)&&(q3<entity.getSimulateConfig().getCaseQuestion().getKnum())){
|
|
throw new CustomException("模拟配置案例题参数错误");
|
|
throw new CustomException("模拟配置案例题参数错误");
|
|
}
|
|
}
|
|
- if(entity.getSimulateConfig().getCaseQuestion().getOrderNum()>3){
|
|
|
|
|
|
+ if(entity.getSimulateConfig().getCaseQuestion().getOrderNum()>4){
|
|
throw new CustomException("模拟配置案例题参数错误");
|
|
throw new CustomException("模拟配置案例题参数错误");
|
|
}
|
|
}
|
|
entity.setSimulateConfigJson(JSON.toJSONString(entity.getSimulateConfig()));
|
|
entity.setSimulateConfigJson(JSON.toJSONString(entity.getSimulateConfig()));
|