浏览代码

fix 二造

he2802 2 年之前
父节点
当前提交
3588a843e2

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/service/impl/ExamServiceImpl.java

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