ITPub博客

首页 > 应用开发 > > 代码哪里给latest12Months2赋值了

代码哪里给latest12Months2赋值了

作者:lilyone 时间:2019-08-16 11:46:38 0 删除 编辑
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);

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4635/viewspace-3127108/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: mysql连接报错
请登录后发表评论 登录
全部评论

注册时间:2019-08-01

  • 博文量
    159
  • 访问量
    974