Merge branch 'FINERACT-494' into develop

This commit is contained in:
Nazeer Hussain Shaik
2017-09-22 13:51:20 +05:30
@@ -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() });
}