fixed for Java 8
This commit is contained in:
parent
34fe5ba43f
commit
f63fd6ed2a
1 changed files with 2 additions and 2 deletions
|
@ -376,7 +376,7 @@ public class ExamConfigurationMapDAOImpl implements ExamConfigurationMapDAO {
|
|||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public Result<Boolean> checkForDeletion(final Long configurationNodeId) {
|
||||
return Result.tryCatch(() -> this.examConfigurationMapRecordMapper.selectByExample()
|
||||
return Result.tryCatch(() -> !this.examConfigurationMapRecordMapper.selectByExample()
|
||||
.where(
|
||||
ExamConfigurationMapRecordDynamicSqlSupport.configurationNodeId,
|
||||
isEqualTo(configurationNodeId))
|
||||
|
@ -385,7 +385,7 @@ public class ExamConfigurationMapDAOImpl implements ExamConfigurationMapDAO {
|
|||
.stream()
|
||||
.filter(rec -> !isExamFinished(rec.getExamId()))
|
||||
.findFirst()
|
||||
.isEmpty());
|
||||
.isPresent());
|
||||
}
|
||||
|
||||
private boolean isExamFinished(final Long examId) {
|
||||
|
|
Loading…
Reference in a new issue