Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #846 from egovernments/develop-ISTE-177
Browse files Browse the repository at this point in the history
updated fromDate and toDate code
  • Loading branch information
debasishchakraborty-egovt authored Jul 4, 2024
2 parents 075e76a + 89a380e commit 99d02c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,13 @@ public StringBuilder applyFiltersForPlaneSearch(StringBuilder query, List<Object
query.append(" conn.tenantid = ? ");
preparedStatement.add(criteria.getTenantId());
}
addClauseIfRequired(preparedStatement, query);
if(criteria.getFromDate()!=null){
addClauseIfRequired(preparedStatement, query);
query.append(" conn.createdtime>=? ");
preparedStatement.add(criteria.getFromDate());
}
addClauseIfRequired(preparedStatement, query);
if(criteria.getToDate()!=null){
addClauseIfRequired(preparedStatement, query);
query.append(" conn.createdtime<=?");
preparedStatement.add(criteria.getToDate());
}
Expand Down

0 comments on commit 99d02c8

Please sign in to comment.