|
@@ -70,7 +70,7 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
|
|
ExamBefore add = BeanUtil.toBean(bo, ExamBefore.class);
|
|
ExamBefore add = BeanUtil.toBean(bo, ExamBefore.class);
|
|
List<ExamBefore> list = this.list(new LambdaQueryWrapper<ExamBefore>()
|
|
List<ExamBefore> list = this.list(new LambdaQueryWrapper<ExamBefore>()
|
|
.eq(ExamBefore::getBeforeName, add.getBeforeName())
|
|
.eq(ExamBefore::getBeforeName, add.getBeforeName())
|
|
- .eq(ExamBefore::getStatus, 1));
|
|
|
|
|
|
+ .in(ExamBefore::getStatus, 1,0));
|
|
if (CollectionUtils.isNotEmpty(list)){
|
|
if (CollectionUtils.isNotEmpty(list)){
|
|
throw new IllegalArgumentException("前培标题不可重复");
|
|
throw new IllegalArgumentException("前培标题不可重复");
|
|
}
|
|
}
|
|
@@ -99,7 +99,7 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
|
|
if (CollectionUtils.isEmpty(list)){
|
|
if (CollectionUtils.isEmpty(list)){
|
|
List<ExamBefore> examBefore = this.list(new LambdaQueryWrapper<ExamBefore>()
|
|
List<ExamBefore> examBefore = this.list(new LambdaQueryWrapper<ExamBefore>()
|
|
.eq(ExamBefore::getBeforeName, update.getBeforeName())
|
|
.eq(ExamBefore::getBeforeName, update.getBeforeName())
|
|
- .eq(ExamBefore::getStatus, 1));
|
|
|
|
|
|
+ .in(ExamBefore::getStatus, 1,0));
|
|
if (CollectionUtils.isNotEmpty(list)){
|
|
if (CollectionUtils.isNotEmpty(list)){
|
|
throw new IllegalArgumentException("前培标题不可重复");
|
|
throw new IllegalArgumentException("前培标题不可重复");
|
|
}
|
|
}
|