ideptdao.java

来自「实现统一的人员日志管理系统管理后台」· Java 代码 · 共 64 行

JAVA
64
字号
package com.tb.log.model.dao.idao;


import java.util.List;


import com.tb.log.model.dao.BaseDAO;
import com.tb.log.model.po.Dept;
import com.tb.log.system.SystemException;
import com.tb.log.util.pages.PageBean;

public interface IDeptDAO extends BaseDAO{
	
	/* (non-Javadoc)
	 * @see com.tb.log.model.dao.BaseDAO#findById(java.lang.String)
	 */
	public Dept findById(String id) throws SystemException ;
	
	
	/**用部门级别grade查询
	 * @param deptGrade
	 * @return
	 * @throws SystemException
	 */
	public List findByGrade(String deptGrade) throws SystemException;
	
	
	/**翻页查询返回pageBean
	 * @return
	 * @throws SystemException
	 */
	public PageBean getTotalResults() throws SystemException;
	
	/**通过条件翻页查询,返回pageBean
	 * @param sql (sql语句)
	 * @return
	 * @throws SystemException
	 */
	public PageBean getTotalResultsByCondition(String sql)throws SystemException;
	
	
	/**查询所有部门信息
	 * @return
	 * @throws SystemException
	 */
	public List findAll() throws SystemException;
	
	
	/**查询所有子部门
	 * @param id
	 * @return
	 * @throws SystemException
	 */
	public List findSubidById(int id) throws SystemException;
	
	
	/**通过部门等级查询所有部门id
	 * @param deptGrade
	 * @return
	 * @throws SystemException
	 */
	public List findIdByGrade(String deptGrade) throws SystemException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?