fixing issues with query for retrieveAccountsWithAnnualFeeDue

This commit is contained in:
Vishwas Babu A J
2013-08-08 16:26:15 +05:30
parent ef8600b8be
commit 5ffafdef08
2 changed files with 2 additions and 2 deletions
@@ -25,7 +25,7 @@ import com.google.gson.JsonElement;
import com.google.gson.reflect.TypeToken;
/**
* Implementation of {@link FromApiJsonDeserializer} for {@link ClientCommand}
* Implementation of {@link FromApiJsonDeserializer} for {@link ClientIdentifierCommandFromApiJsonDeserializer}
* 's.
*/
@Component
@@ -518,7 +518,7 @@ public class SavingsAccountReadPlatformServiceImpl implements SavingsAccountRead
@Override
public Collection<SavingsAccountAnnualFeeData> retrieveAccountsWithAnnualFeeDue() {
final String sql = "select " + annualFeeMapper.schema()
+ " where sa.annual_fee_next_due_date not null and sa.annual_fee_next_due_date <= NOW()";
+ " where sa.annual_fee_next_due_date is not null and sa.annual_fee_next_due_date <= NOW()";
return this.jdbcTemplate.query(sql, this.annualFeeMapper, new Object[] {});
}