SEBSERV-317 archived state filter and LMS activation handling
This commit is contained in:
parent
b44c5f4eb2
commit
6a4c0ff89c
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue