📄 ideptdao.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -