Merge tag 'Hotfix-71' into develop
Finish Hotfix-71
This commit is contained in:
@@ -111,7 +111,7 @@ public class DataSheetServices {
|
|||||||
|
|
||||||
List<HashMap<String, Object>> descrizioni = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), sql);
|
List<HashMap<String, Object>> descrizioni = UtilityDB.executeSimpleQuery(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||||
|
|
||||||
if (descrizioni != null && !descrizioni.isEmpty())
|
if (!descrizioni.isEmpty())
|
||||||
hashMaps.addAll(descrizioni);
|
hashMaps.addAll(descrizioni);
|
||||||
|
|
||||||
HashMap<String, String> resultMap = new HashMap<>();
|
HashMap<String, String> resultMap = new HashMap<>();
|
||||||
@@ -122,7 +122,7 @@ public class DataSheetServices {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Optional<HashMap<String, Object>> optionalMap = hashMaps.stream()
|
Optional<HashMap<String, Object>> optionalMap = hashMaps.stream()
|
||||||
.filter(map -> UtilityHashMap.<String>getValueIfExists(map, "cod_var").equalsIgnoreCase(variable))
|
.filter(map -> UtilityHashMap.<String>getValueIfExists(map, "cod_var").equalsIgnoreCase(variable.endsWith("E") ? variable.substring(0, variable.length() - 1) : variable))
|
||||||
.findFirst();
|
.findFirst();
|
||||||
|
|
||||||
optionalMap.ifPresent(map -> {
|
optionalMap.ifPresent(map -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user