/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.ejweb.modules.sys.dao;

import com.ejweb.core.persistence.TreeDao;
import com.ejweb.core.persistence.annotation.MyBatisDao;
import com.ejweb.modules.sys.entity.Office;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 机构DAO接口
 * @author ThinkGem
 * @version 2014-05-16
 */
@MyBatisDao
public interface OfficeDao extends TreeDao<Office> {
	// zhujf start
    public List<Office> findByParentId(Office office);

    Office findByOfficeName(@Param(value="officeName")String officeName);

    Office getCompany(Office office);
    // zhujf end
}
