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 c47f1e57..e7404fce 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 @@ -886,7 +886,7 @@ public class ResourceServiceImpl extends CrudServiceImpl resultMap = new HashMap<>(); - long deptCount = resourceDao.selectDeptCount(); + int deptCount = resourceDao.selectDeptCount(); resultMap.put("deptCount", deptCount); HashMap map = new HashMap() { { @@ -919,7 +919,7 @@ public class ResourceServiceImpl extends CrudServiceImpl (int) index).sum())); + map1.put("0", ((int) map1.get("0")) + (deptCount - map1.values().stream().mapToInt(index -> (int) index).sum())); resultMap.put("deptTotalCount", map1); return resultMap; }