Skip to content

Commit

Permalink
change for single demand generation
Browse files Browse the repository at this point in the history
  • Loading branch information
abhirana04 authored Dec 6, 2023
1 parent 371261c commit cb888da
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public String getDistinctTenantIds() {
return distinctTenantIdsCriteria;
}

public String getConnectionNumberList(String tenantId, String connectionType, String status, Long taxPeriodFrom, Long taxPeriodTo, List<Object> preparedStatement) {
public String getConnectionNumberList(String tenantId, String connectionType, String status, Long taxPeriodFrom, Long taxPeriodTo, String cone, List<Object> preparedStatement) {
StringBuilder query = new StringBuilder(connectionNoListQuery);
// Add connection type
addClauseIfRequired(preparedStatement, query);
Expand Down Expand Up @@ -65,7 +65,12 @@ public String getConnectionNumberList(String tenantId, String connectionType, St
//Add not null condition
addClauseIfRequired(preparedStatement, query);
query.append(" conn.connectionno is not null");

if(cone!=null && cone!="")
{
addClauseIfRequired(preparedStatement, query);
query.append(" conn.connectionno = ? ");
preparedStatement.add(cone);
}
query.append(fetchConnectionsToBeGenerate(tenantId, taxPeriodFrom, taxPeriodTo, preparedStatement));

return query.toString();
Expand Down

0 comments on commit cb888da

Please sign in to comment.