for (int i = 0; i < list.length; i++) {
month = new LinkedHashMap();
month.put(list[i], "0");
latest12Months.add(month);
latest12Months2.add(month);
}
System.out.println("latest12Months2---------"+latest12Months2);
List<SecurityAdministrationDto> DH = securityAdministrationService.getDH();
List resultDH = new ArrayList();
for (int i = 0; i < latest12Months.size(); i++) {
for (String key : latest12Months.get(i).keySet()) {
String value = (String) latest12Months.get(i).get(key);
for (int j = 0; j < DH.size(); j++) {
if (key.equals(DH.get(j).getMonth())) {
((Map) latest12Months.get(i)).put(key, DH.get(j).getSum());
}
}
}
}
System.out.println("latest12Months---------"+latest12Months);
System.out.println("latest12Months2---------"+latest12Months2);
latest12Months2.add(month);