|
|
@@ -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("前培标题不可重复");
|
|
|
}
|