Fixed or criterias

This commit is contained in:
anhefti 2022-12-06 15:07:45 +01:00
parent 6a7d565e88
commit bb660f3953

View file

@ -636,10 +636,10 @@ public class ClientConnectionDAOImpl implements ClientConnectionDAO {
SqlBuilder.isEqualTo(examId))
.and(
ClientConnectionRecordDynamicSqlSupport.status,
SqlBuilder.isEqualTo(ConnectionStatus.ACTIVE.name()))
.or(
ClientConnectionRecordDynamicSqlSupport.status,
SqlBuilder.isEqualTo(ConnectionStatus.CONNECTION_REQUESTED.name()))
SqlBuilder.isEqualTo(ConnectionStatus.ACTIVE.name()),
SqlBuilder.or(
ClientConnectionRecordDynamicSqlSupport.status,
SqlBuilder.isEqualTo(ConnectionStatus.CONNECTION_REQUESTED.name())))
.build()
.execute()
.stream()
@ -702,10 +702,10 @@ public class ClientConnectionDAOImpl implements ClientConnectionDAO {
SqlBuilder.isEqualTo(examId))
.and(
ClientConnectionRecordDynamicSqlSupport.status,
SqlBuilder.isEqualTo(ConnectionStatus.ACTIVE.name()))
.or(
ClientConnectionRecordDynamicSqlSupport.status,
SqlBuilder.isEqualTo(ConnectionStatus.CONNECTION_REQUESTED.name()))
SqlBuilder.isEqualTo(ConnectionStatus.ACTIVE.name()),
SqlBuilder.or(
ClientConnectionRecordDynamicSqlSupport.status,
SqlBuilder.isEqualTo(ConnectionStatus.CONNECTION_REQUESTED.name())))
.build()
.execute()
.stream()
@ -791,7 +791,8 @@ public class ClientConnectionDAOImpl implements ClientConnectionDAO {
SqlBuilder.isIn(ClientConnection.SECURE_CHECK_STATES))
.and(
ClientConnectionRecordDynamicSqlSupport.securityCheckGranted,
SqlBuilder.isEqualTo(Constants.BYTE_FALSE), SqlBuilder.or(
SqlBuilder.isEqualTo(Constants.BYTE_FALSE),
SqlBuilder.or(
ClientConnectionRecordDynamicSqlSupport.securityCheckGranted,
SqlBuilder.isNull()))
.and(ClientConnectionRecordDynamicSqlSupport.ask, SqlBuilder.isNotNull())