Skip to content

Commit

Permalink
feat-DepartmentController-查询部门信息时自动关联相关人员信息
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Nov 21, 2024
1 parent 09c8d90 commit f251660
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public class DepartmentController extends ScaffoldForPlatform implements ITreeAb

@Inject
Provider<OrganizationController> organizationProvider;
@Inject
Provider<UserInfoController> userInfoControllerProvider;

@Override
public String getMainTable() {
Expand Down Expand Up @@ -83,7 +85,9 @@ public Integer sort(String id, String prevId, String nextId, String parentId) {
@Override
public List<ReferenceInfo> getReferenceList() {
return List.of(
organizationProvider.get().toReferenceInfo("id_at_org_organization")
organizationProvider.get().toReferenceInfo("id_at_org_organization"),
userInfoControllerProvider.get().toReferenceInfo("id_at_auth_user__leader"),
userInfoControllerProvider.get().toReferenceInfo("id_at_auth_user__boss")
);
}

Expand Down

0 comments on commit f251660

Please sign in to comment.