|
@@ -130,7 +130,7 @@ public class OrganizationServiceImpl extends BaseServiceImpl<Integer, Organizati
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<Integer> getSelfAndChildOrganIds(Integer organId) {
|
|
|
+ public List<Integer> getChildOrganIds(Integer organId, boolean includeSelf) {
|
|
|
Organization organization = organDao.get(organId);
|
|
|
if(Objects.isNull(organization)){
|
|
|
throw new BizException("当前声部不存在");
|
|
@@ -142,7 +142,9 @@ public class OrganizationServiceImpl extends BaseServiceImpl<Integer, Organizati
|
|
|
if(null == selfAndChildOrganIds){
|
|
|
selfAndChildOrganIds= Collections.EMPTY_LIST;
|
|
|
}
|
|
|
- selfAndChildOrganIds.add(organization.getId());
|
|
|
+ if(includeSelf){
|
|
|
+ selfAndChildOrganIds.add(organization.getId());
|
|
|
+ }
|
|
|
return selfAndChildOrganIds;
|
|
|
}
|
|
|
}
|