/**
 * Company Name : 中贸促信息技术有限责任公司
 * Project Name:project
 * File Name:OperateDao.java
 * Package Name:org.ccpit.base.privilegeManage
 * Date:2015年9月23日下午3:34:28
 * Copyright (c) 2015, dingwei@ccpit.org All Rights Reserved.
 *
*/

package org.ccpit.base.privilegeManage;

import java.util.List;

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

/**
 * ClassName:OperateDao <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2015年9月23日 下午3:34:28 <br/>
 * @author   dingwei
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@Repository
public class OperateDao extends BaseDao<Operate>{

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

