Commit c3f78348 by 丁伟峰

改用构造器注入

1 parent 423af476
......@@ -19,23 +19,22 @@ import java.util.List;
@Slf4j
public class OrganizationServiceImpl implements OrganizationService {
@Autowired
private OrgClusterDao orgClusterDao;
@Autowired
private OrgBranchDao orgBranchDao;
@Autowired
private OrgGroupDao orgGroupDao;
private final OrgClusterDao orgClusterDao;
private final OrgBranchDao orgBranchDao;
private final OrgGroupDao orgGroupDao;
private final OrgTeamEngineerDao orgTeamEngineerDao;
private final EngineerInfoDao engineerInfoDao;
private final OrgTeamDao orgTeamDao;
@Autowired
private OrgTeamEngineerDao orgTeamEngineerDao;
@Autowired
private EngineerInfoDao engineerInfoDao;
@Autowired
private OrgTeamDao orgTeamDao;
public OrganizationServiceImpl(OrgClusterDao orgClusterDao, OrgBranchDao orgBranchDao, OrgGroupDao orgGroupDao, OrgTeamEngineerDao orgTeamEngineerDao, EngineerInfoDao engineerInfoDao, OrgTeamDao orgTeamDao) {
this.orgClusterDao = orgClusterDao;
this.orgBranchDao = orgBranchDao;
this.orgGroupDao = orgGroupDao;
this.orgTeamEngineerDao = orgTeamEngineerDao;
this.engineerInfoDao = engineerInfoDao;
this.orgTeamDao = orgTeamDao;
}
@Override
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!