Parcourir la source

修改考试安排

change il y a 4 ans
Parent
commit
c0f958e5cf

+ 2 - 4
zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/service/impl/ExamBeforeServiceImpl.java

@@ -18,9 +18,7 @@ import com.zhongzheng.modules.exam.mapper.ExamBeforeMapper;
 import com.zhongzheng.modules.exam.vo.ExamBeforeVo;
 import com.zhongzheng.modules.exam.service.IExamBeforeService;
 
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
+import java.util.*;
 import java.util.stream.Collectors;
 
 /**
@@ -99,7 +97,7 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
             if (CollectionUtils.isEmpty(list)){
                 List<ExamBefore> examBefore = this.list(new LambdaQueryWrapper<ExamBefore>()
                         .eq(ExamBefore::getBeforeName, update.getBeforeName())
-                        .in(ExamBefore::getStatus, 1,0));
+                        .in(ExamBefore::getStatus,new ArrayList<Integer>(Arrays.asList(1,0)) ));
                 if (CollectionUtils.isNotEmpty(list)){
                     throw new IllegalArgumentException("前培标题不可重复");
                 }