SEBSERV-317 archived state filter and LMS activation handling

This commit is contained in:
anhefti 2022-06-13 16:46:23 +02:00
parent b44c5f4eb2
commit 6a4c0ff89c
2 changed files with 6 additions and 0 deletions

View file

@ -228,6 +228,7 @@ public class ExamDAOImpl implements ExamDAO {
this.examRecordMapper.updateByExampleSelective(examRecord)
.where(ExamRecordDynamicSqlSupport.id, isIn(ids))
.and(ExamRecordDynamicSqlSupport.status, isNotEqualTo(ExamStatus.ARCHIVED.name()))
.build()
.execute();

View file

@ -193,6 +193,11 @@ public class ExamRecordDAO {
.and(
ExamRecordDynamicSqlSupport.status,
isInWhenPresent(stateNames));
} else {
whereClause = whereClause
.and(
ExamRecordDynamicSqlSupport.status,
isNotEqualTo(ExamStatus.ARCHIVED.name()));
}
final List<ExamRecord> records = whereClause