package com.zhuohua.systemadmin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.zhuohua.systemadmin.dao.LoadDepartmentDao;
import com.zhuohua.systemadmin.model.Department;
import com.zhuohua.systemadmin.service.LoadDepartmentService;

@Component(value = "systemAdminLoadDepartmentService")
public class LoadDepartmentServiceImpl implements LoadDepartmentService {
	private LoadDepartmentDao loaddepartmentDao;
	

	public LoadDepartmentDao getLoaddepartmentDao() {
		return loaddepartmentDao;
	}
	
	@Resource(name="systemAdminLoadDepartmentDao")
	public void setLoaddepartmentDao(LoadDepartmentDao loaddepartmentDao) {
		this.loaddepartmentDao = loaddepartmentDao;
	}

	@Override
	public List<Department> searchAllDepartment() {
		return this.loaddepartmentDao.searchAllDepartment();
	}
	
}
