package com.huaheng.pc.system.dept.service; import java.util.List; import java.util.Map; import com.huaheng.pc.system.dept.domain.Dept; /** * 部门管理 服务层 * * @author huaheng */ public interface IDeptService { /** * 查询部门管理数据 * * @param dept 部门信息 * @return 部门信息集合 */ public List<Dept> selectDeptList(Dept dept); /** * 查询部门所有数据 * * @return 部门信息集合 */ public List<Dept> selectDeptAll(); /** * 查询部门管理树 * * @return 所有部门信息 */ public List<Map<String, Object>> selectDeptTree(); /** * 查询部门人数 * * @param parentId 父部门ID * @return 结果 */ public int selectDeptCount(Integer parentId); /** * 查询部门是否存在用户 * * @param id 部门ID * @return 结果 true 存在 false 不存在 */ public boolean checkDeptExistUser(Integer id); /** * 删除部门管理信息 * * @param id 部门ID * @return 结果 */ public int deleteDeptById(Integer id); /** * 新增保存部门信息 * * @param dept 部门信息 * @return 结果 */ public int insertDept(Dept dept); /** * 修改保存部门信息 * * @param dept 部门信息 * @return 结果 */ public int updateDept(Dept dept); /** * 修改保存部门信息 * * @param dept 部门信息 * @return 结果 */ public int updatesDept(Dept dept); /** * 根据部门ID查询信息 * * @param id 部门ID * @return 部门信息 */ public Dept selectDeptById(Integer id); /** * 校验部门名称是否唯一 * * @param dept 部门信息 * @return 结果 */ public String checkDeptNameUnique(Dept dept); /** * 根据部门编码查询部门ID * * @param cDepCode 部门编码 * @return deptName 部门ID */ public int selectDeptId(String cDepCode); /** * 根据部门编码查询部门信息 * @param cDepCode * @return */ public Dept selectDepts(String cDepCode); /** * U8插入部门信息 * @param dept * @return */ public int insertDepts(Dept dept); }