【8.0】【system】更新组织机构树接口

pull/57/head
fengshuonan 2023-07-13 22:35:26 +08:00
parent afd02e8c35
commit 3fdc48d667
1 changed files with 2 additions and 2 deletions

View File

@ -221,8 +221,8 @@ public class HrOrganizationServiceImpl extends ServiceImpl<HrOrganizationMapper,
newNotRepeatList.sort(Comparator.comparing(HrOrganization::getOrgSort));
// 构建树形结构
if (commonOrgTreeRequest.getOrgParentId() != null && !TreeConstants.DEFAULT_PARENT_ID.equals(
commonOrgTreeRequest.getOrgParentId())) {
if (ObjectUtil.isNotEmpty(commonOrgTreeRequest.getSearchText()) || ObjectUtil.isNotEmpty(
commonOrgTreeRequest.getIndexOrgIdList())) {
newNotRepeatList = new DefaultTreeBuildFactory<HrOrganization>().doTreeBuild(newNotRepeatList);
}