Commit 45706e4a by levphon

修复选中组织节点用户数量bug

1 parent 8d161e46
......@@ -212,7 +212,7 @@ public class SelfDepartmentStrategy extends PermissionStrategy {
public Map<Long, Integer> calculateNumberOfOrgUsers(Collection<Long> orgIds) {
List<Long> permissionOrgIds = this.permissionDepartmentIds();
//本部门
List<Organization> allSubList = organizationMapper.selectSubOrgList(permissionOrgIds, 0);
List<Organization> allSubList = organizationMapper.selectSubOrgList(permissionOrgIds, null);
return calculateNumberOfOrgUsers(orgIds, allSubList);
}
......
......@@ -275,7 +275,7 @@ public class SubDepartmentStrategy extends PermissionStrategy {
public Map<Long, Integer> calculateNumberOfOrgUsers(Collection<Long> orgIds) {
Set<Long> permissionOrgIds = this.permissionDepartmentIds();
//本部门及下级部门
List<Organization> allSubList = organizationMapper.selectSubOrgList(permissionOrgIds, 0);
List<Organization> allSubList = organizationMapper.selectSubOrgList(permissionOrgIds, null);
return calculateNumberOfOrgUsers(orgIds, allSubList);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!