Skip to content

Commit

Permalink
HLM Individual search failed on userid based search fixed (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishq-egov authored May 30, 2024
1 parent b7a63ee commit e8d6558
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,15 @@ private String getQueryForIndividual(IndividualSearch searchObject, Integer limi
}

if (searchObject.getUsername() != null) {
query = query + "AND username=:username ";
query = query + "AND username in (:username) ";
paramsMap.put("username", searchObject.getUsername());
}

if (searchObject.getUserId() != null) {
query = query + "AND userId=:userId ";
paramsMap.put("userId", String.valueOf(searchObject.getUserId()));
query = query + "AND userId in (:userId) ";
paramsMap.put("userId", searchObject.getUserId().stream()
.map(Object::toString)
.collect(Collectors.toList()));
}

if (searchObject.getUserUuid() != null) {
Expand Down

0 comments on commit e8d6558

Please sign in to comment.