You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.2 KiB

6 years ago
package com.ruoyi.system.service;
6 years ago
import cn.hutool.core.lang.tree.Tree;
6 years ago
import com.ruoyi.common.core.domain.entity.SysDept;
6 years ago
import java.util.List;
6 years ago
/**
*
*
* @author Lion Li
6 years ago
*/
public interface ISysDeptService {
6 years ago
/**
*
*
6 years ago
* @param dept
* @return
*/
List<SysDept> selectDeptList(SysDept dept);
6 years ago
/**
*
*
6 years ago
* @param depts
* @return
*/
List<Tree<Long>> buildDeptTreeSelect(List<SysDept> depts);
6 years ago
/**
* ID
*
6 years ago
* @param roleId ID
* @return
*/
List<Long> selectDeptListByRoleId(Long roleId);
6 years ago
/**
* ID
*
6 years ago
* @param deptId ID
* @return
*/
SysDept selectDeptById(Long deptId);
6 years ago
/**
* ID
*
* @param deptId ID
* @return
*/
long selectNormalChildrenDeptById(Long deptId);
6 years ago
/**
*
*
6 years ago
* @param deptId ID
* @return
*/
boolean hasChildByDeptId(Long deptId);
6 years ago
/**
*
*
6 years ago
* @param deptId ID
* @return true false
*/
boolean checkDeptExistUser(Long deptId);
6 years ago
/**
*
*
6 years ago
* @param dept
* @return
*/
String checkDeptNameUnique(SysDept dept);
6 years ago
/**
*
*
* @param deptId id
*/
void checkDeptDataScope(Long deptId);
6 years ago
/**
*
*
6 years ago
* @param dept
* @return
*/
int insertDept(SysDept dept);
6 years ago
/**
*
*
6 years ago
* @param dept
* @return
*/
int updateDept(SysDept dept);
6 years ago
/**
*
*
6 years ago
* @param deptId ID
* @return
*/
int deleteDeptById(Long deptId);
6 years ago
}