Merge branch 'bulk_jlg' into develop
This commit is contained in:
+1
-2
@@ -187,7 +187,7 @@ public class LoanProductData {
|
||||
/**
|
||||
* Used when returning lookup information about loan product for dropdowns.
|
||||
*/
|
||||
public static LoanProductData lookup(final Long id, final String name) {
|
||||
public static LoanProductData lookup(final Long id, final String name, final Boolean multiDisburseLoan ) {
|
||||
final String shortName = null;
|
||||
final String description = null;
|
||||
final CurrencyData currency = null;
|
||||
@@ -241,7 +241,6 @@ public class LoanProductData {
|
||||
final LocalDate closeDate = null;
|
||||
final String status = null;
|
||||
final String externalId = null;
|
||||
final Boolean multiDisburseLoan = null;
|
||||
final Integer maxTrancheCount = null;
|
||||
final BigDecimal outstandingLoanBalance = null;
|
||||
final LoanProductGuaranteeData productGuaranteeData = null;
|
||||
|
||||
+3
-2
@@ -469,7 +469,7 @@ public class LoanProductReadPlatformServiceImpl implements LoanProductReadPlatfo
|
||||
private static final class LoanProductLookupMapper implements RowMapper<LoanProductData> {
|
||||
|
||||
public String schema() {
|
||||
return "lp.id as id, lp.name as name from m_product_loan lp";
|
||||
return "lp.id as id, lp.name as name, lp.allow_multiple_disbursals as multiDisburseLoan from m_product_loan lp";
|
||||
}
|
||||
|
||||
public String activeOnlySchema() {
|
||||
@@ -494,8 +494,9 @@ public class LoanProductReadPlatformServiceImpl implements LoanProductReadPlatfo
|
||||
|
||||
final Long id = rs.getLong("id");
|
||||
final String name = rs.getString("name");
|
||||
final Boolean multiDisburseLoan = rs.getBoolean("multiDisburseLoan");
|
||||
|
||||
return LoanProductData.lookup(id, name);
|
||||
return LoanProductData.lookup(id, name, multiDisburseLoan);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user