This commit is contained in:
wangliwen 2022-10-13 22:56:49 +08:00
parent de5d3738d7
commit 7ca30e38c2
1 changed files with 5 additions and 5 deletions

View File

@ -919,11 +919,11 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
item.setValue(index.get("total")); item.setValue(index.get("total"));
} }
})); }));
final int[] sum = {0}; // final int[] sum = {0};
map1.values().forEach(index -> { // map1.values().forEach(index -> {
sum[0] = sum[0] + Integer.parseInt(index.toString()); // sum[0] = sum[0] + Integer.parseInt(index.toString());
}); // });
map1.put("0", (Integer.valueOf(map1.get("0").toString())) + (deptCount - sum[0])); // map1.put("0", (Integer.valueOf(map1.get("0").toString())) + (deptCount - sum[0]));
resultMap.put("deptTotalCount", map1); resultMap.put("deptTotalCount", map1);
return resultMap; return resultMap;
} }