diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index 54f21db4..4b37c786 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -919,11 +919,11 @@ public class ResourceServiceImpl extends CrudServiceImpl { - sum[0] = sum[0] + Integer.parseInt(index.toString()); - }); - map1.put("0", (Integer.valueOf(map1.get("0").toString())) + (deptCount - sum[0])); +// final int[] sum = {0}; +// map1.values().forEach(index -> { +// sum[0] = sum[0] + Integer.parseInt(index.toString()); +// }); +// map1.put("0", (Integer.valueOf(map1.get("0").toString())) + (deptCount - sum[0])); resultMap.put("deptTotalCount", map1); return resultMap; }