/**
 * Company Name : 中贸促信息技术有限责任公司
 * Project Name:project
 * File Name:OrgDao.java
 * Package Name:org.ccpit.base.orgManage
 * Date:2015年9月18日下午4:59:13
 * Copyright (c) 2015, dingwei@ccpit.org All Rights Reserved.
 *
 */

package org.ccpit.base.orgManage;

import java.util.List;

import org.ccpit.base.dao.BaseDao;
import org.springframework.stereotype.Repository;

/**
 * ClassName:OrgDao <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON. <br/>
 * Date: 2015年9月18日 下午4:59:13 <br/>
 * 
 * @author dingwei
 * @version
 * @since JDK 1.6
 * @see
 */
@Repository
public class OrgDao extends BaseDao<OrgInfo> {

	public List<OrgInfo> getChildOrgById(long id) {
		String hql = "from " + OrgInfo.class.getName()+" where parentId=" + id;
		List<OrgInfo> orgList = super.query(hql, null);
		return orgList;
	}
}
