소스 검색

fix 二造

he2802 3 년 전
부모
커밋
3588a843e2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/service/impl/ExamServiceImpl.java

+ 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("该卷已被绑定,不允许修改发布状态为未发布");
             }
         }
-        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())){