|
|
@ -68,7 +68,7 @@ public class PostgreSQLCertificateDAOImpl extends AbstractCertificateDAOImpl {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(deviceIdentifier)) {
|
|
|
|
if (StringUtils.isNotEmpty(deviceIdentifier)) {
|
|
|
|
query += "AND DEVICE_IDENTIFIER = ? ";
|
|
|
|
query += "AND DEVICE_IDENTIFIER LIKE ? ";
|
|
|
|
isCertificateDeviceIdentifierProvided = true;
|
|
|
|
isCertificateDeviceIdentifierProvided = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -86,7 +86,7 @@ public class PostgreSQLCertificateDAOImpl extends AbstractCertificateDAOImpl {
|
|
|
|
stmt.setString(paramIdx++, "%" + serialNumber + "%");
|
|
|
|
stmt.setString(paramIdx++, "%" + serialNumber + "%");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (isCertificateDeviceIdentifierProvided) {
|
|
|
|
if (isCertificateDeviceIdentifierProvided) {
|
|
|
|
stmt.setString(paramIdx++, deviceIdentifier);
|
|
|
|
stmt.setString(paramIdx++, "%" + deviceIdentifier + "%");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (isCertificateUsernameProvided) {
|
|
|
|
if (isCertificateUsernameProvided) {
|
|
|
|
stmt.setString(paramIdx++, "%" + username + "%");
|
|
|
|
stmt.setString(paramIdx++, "%" + username + "%");
|
|
|
@ -140,7 +140,7 @@ public class PostgreSQLCertificateDAOImpl extends AbstractCertificateDAOImpl {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(deviceIdentifier)) {
|
|
|
|
if (StringUtils.isNotEmpty(deviceIdentifier)) {
|
|
|
|
sql += " AND DEVICE_IDENTIFIER = ?";
|
|
|
|
sql += " AND DEVICE_IDENTIFIER LIKE ?";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(username)) {
|
|
|
|
if (StringUtils.isNotEmpty(username)) {
|
|
|
@ -156,7 +156,7 @@ public class PostgreSQLCertificateDAOImpl extends AbstractCertificateDAOImpl {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(deviceIdentifier)) {
|
|
|
|
if (StringUtils.isNotEmpty(deviceIdentifier)) {
|
|
|
|
stmt.setString(paramIdx++, deviceIdentifier);
|
|
|
|
stmt.setString(paramIdx++, "%" + deviceIdentifier + "%");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(username)) {
|
|
|
|
if (StringUtils.isNotEmpty(username)) {
|
|
|
|