Skip to content

Commit

Permalink
Merge branch 'dev' into hcmpre-878-stockService
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhang-eGov authored Dec 2, 2024
2 parents d8e04b4 + 9bba4d0 commit 9ac4df2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ public String getProjectSearchQuery(List<Project> projects, Integer limit, Integ
preparedStmtList.add(project.getProjectType());
}

if (StringUtils.isNotBlank(project.getReferenceID())) {
addClauseIfRequired(preparedStmtList, queryBuilder);
queryBuilder.append(" prj.referenceId =? ");
preparedStmtList.add(project.getReferenceID());
}

if (StringUtils.isNotBlank(project.getParent())) {
addClauseIfRequired(preparedStmtList, queryBuilder);
queryBuilder.append(" prj.parent =? ");
preparedStmtList.add(project.getParent());
}

if (project.getAddress() != null && StringUtils.isNotBlank(project.getAddress().getBoundary())) {
addClauseIfRequired(preparedStmtList, queryBuilder);
queryBuilder.append(" addr.boundary=? ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ private static <T> void enrichErrorForStock(List<Stock> validEntities,
// If facilityIds are empty, log an error for both sender and receiver
populateErrorForStock(stock, senderId + " and " + receiverId, errorDetailsMap);
}
} else {
populateErrorForStock(stock, senderId, errorDetailsMap);
}
}
}
Expand Down

0 comments on commit 9ac4df2

Please sign in to comment.