FINERACT-494 Issue when selecting savings account on client creation page

This commit is contained in:
Nazeer Hussain Shaik
2017-09-13 19:49:45 +05:30
parent df16dc3cad
commit 61e6214fa6
@@ -262,14 +262,19 @@ public class SavingsProductReadPlatformServiceImpl implements SavingsProductRead
if (isOverdraftType != null) {
if (inClauseAdded) {
sql += " and sp.allow_overdraft=?";
sql += " and sp.allow_overdraft=? and sp.deposit_type_enum = ?";
} else {
sql += " where sp.allow_overdraft=?";
sql += " where sp.allow_overdraft=? and sp.deposit_type_enum = ?";
}
return this.jdbcTemplate.query(sql, this.savingsProductLookupsRowMapper, isOverdraftType);
return this.jdbcTemplate.query(sql, this.savingsProductLookupsRowMapper, new Object[] {isOverdraftType, DepositAccountType.SAVINGS_DEPOSIT.getValue() });
}
return this.jdbcTemplate.query(sql, this.savingsProductLookupsRowMapper);
if(inClauseAdded) {
sql += " and sp.deposit_type_enum = ?";
}else {
sql += " where sp.deposit_type_enum = ?";
}
return this.jdbcTemplate.query(sql, this.savingsProductLookupsRowMapper, new Object[] { DepositAccountType.SAVINGS_DEPOSIT.getValue() });
}