Commit c3f78348 by 丁伟峰

改用构造器注入

1 parent 423af476
...@@ -19,23 +19,22 @@ import java.util.List; ...@@ -19,23 +19,22 @@ import java.util.List;
@Slf4j @Slf4j
public class OrganizationServiceImpl implements OrganizationService { public class OrganizationServiceImpl implements OrganizationService {
@Autowired private final OrgClusterDao orgClusterDao;
private OrgClusterDao orgClusterDao; private final OrgBranchDao orgBranchDao;
private final OrgGroupDao orgGroupDao;
@Autowired private final OrgTeamEngineerDao orgTeamEngineerDao;
private OrgBranchDao orgBranchDao; private final EngineerInfoDao engineerInfoDao;
private final OrgTeamDao orgTeamDao;
@Autowired
private OrgGroupDao orgGroupDao;
@Autowired @Autowired
private OrgTeamEngineerDao orgTeamEngineerDao; public OrganizationServiceImpl(OrgClusterDao orgClusterDao, OrgBranchDao orgBranchDao, OrgGroupDao orgGroupDao, OrgTeamEngineerDao orgTeamEngineerDao, EngineerInfoDao engineerInfoDao, OrgTeamDao orgTeamDao) {
this.orgClusterDao = orgClusterDao;
@Autowired this.orgBranchDao = orgBranchDao;
private EngineerInfoDao engineerInfoDao; this.orgGroupDao = orgGroupDao;
this.orgTeamEngineerDao = orgTeamEngineerDao;
@Autowired this.engineerInfoDao = engineerInfoDao;
private OrgTeamDao orgTeamDao; this.orgTeamDao = orgTeamDao;
}
@Override @Override
public Result<?> getOrganizationTree(String levelType, String levelId) { public Result<?> getOrganizationTree(String levelType, String levelId) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!