FINERACT-494 Issue when selecting savings account on client creation page
This commit is contained in:
+9
-4
@@ -262,14 +262,19 @@ public class SavingsProductReadPlatformServiceImpl implements SavingsProductRead
|
|||||||
|
|
||||||
if (isOverdraftType != null) {
|
if (isOverdraftType != null) {
|
||||||
if (inClauseAdded) {
|
if (inClauseAdded) {
|
||||||
sql += " and sp.allow_overdraft=?";
|
sql += " and sp.allow_overdraft=? and sp.deposit_type_enum = ?";
|
||||||
} else {
|
} 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() });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user