retrieve currencies in name order
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ public class LoanProductsApiResource {
|
|||||||
@Produces({MediaType.APPLICATION_JSON})
|
@Produces({MediaType.APPLICATION_JSON})
|
||||||
public String retrieveNewLoanProductDetails(@Context final UriInfo uriInfo) {
|
public String retrieveNewLoanProductDetails(@Context final UriInfo uriInfo) {
|
||||||
|
|
||||||
// TODO - KW - every addition of a parameter here requires same additon in supported params used in 'apiDataConversionService' method.
|
// TODO - KW - every addition of a parameter here requires same addition in supported params used in 'apiDataConversionService' method.
|
||||||
Set<String> typicalResponseParameters = new HashSet<String>(
|
Set<String> typicalResponseParameters = new HashSet<String>(
|
||||||
Arrays.asList("id", "name", "description", "fundId", "fundName", "transactionProcessingStrategyId", "transactionProcessingStrategyName",
|
Arrays.asList("id", "name", "description", "fundId", "fundName", "transactionProcessingStrategyId", "transactionProcessingStrategyName",
|
||||||
"principal", "inArrearsTolerance", "numberOfRepayments",
|
"principal", "inArrearsTolerance", "numberOfRepayments",
|
||||||
|
|||||||
+2
-2
@@ -30,7 +30,7 @@ public class CurrencyReadPlatformServiceImpl implements CurrencyReadPlatformServ
|
|||||||
|
|
||||||
context.authenticatedUser();
|
context.authenticatedUser();
|
||||||
|
|
||||||
String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_organisation_currency c";
|
String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_organisation_currency c order by c.name";
|
||||||
|
|
||||||
RowMapper<CurrencyData> rm = new CurrencyMapper();
|
RowMapper<CurrencyData> rm = new CurrencyMapper();
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ public class CurrencyReadPlatformServiceImpl implements CurrencyReadPlatformServ
|
|||||||
@Override
|
@Override
|
||||||
public List<CurrencyData> retrieveAllPlatformCurrencies() {
|
public List<CurrencyData> retrieveAllPlatformCurrencies() {
|
||||||
|
|
||||||
String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_currency c";
|
String sql = "select c.code as code, c.name as name, c.decimal_places as decimalPlaces, c.display_symbol as displaySymbol, c.internationalized_name_code as nameCode from m_currency c order by c.name";
|
||||||
|
|
||||||
RowMapper<CurrencyData> rm = new CurrencyMapper();
|
RowMapper<CurrencyData> rm = new CurrencyMapper();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user