公司和部门管理列表,根据代码模糊查询时,可以查出子节点

This commit is contained in:
thinkgem
2025-03-28 10:20:19 +08:00
parent a4c3476693
commit 99321f4943
2 changed files with 2 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ public class CompanyController extends BaseController {
company.setParentCode(Company.ROOT_CODE);
}
if (StringUtils.isNotBlank(company.getViewCode())
|| StringUtils.isNotBlank(company.getViewCode_like())
|| StringUtils.isNotBlank(company.getCompanyName())
|| StringUtils.isNotBlank(company.getFullName())){
company.setParentCode(null);

View File

@@ -96,6 +96,7 @@ public class OfficeController extends BaseController {
office.setParentCode(Office.ROOT_CODE);
}
if (StringUtils.isNotBlank(office.getViewCode())
|| StringUtils.isNotBlank(office.getViewCode_like())
|| StringUtils.isNotBlank(office.getOfficeName())
|| StringUtils.isNotBlank(office.getFullName())){
office.setParentCode(null);