package com.ots.project.system.dept.mapper;
|
import com.ots.project.system.dept.domain.Dept;
|
import org.apache.ibatis.annotations.Param;
|
import java.util.List;
|
|
public interface DeptMapper {
|
|
public int selectDeptCount(Dept dept);
|
|
public int checkDeptExistUser(Long deptId);
|
|
public List<Dept> selectDeptList(Dept dept);
|
|
public int deleteDeptById(Long deptId);
|
|
public int insertDept(Dept dept);
|
|
public int updateDept(Dept dept);
|
|
public int updateDeptChildren(@Param("depts") List<Dept> depts);
|
|
public Dept selectDeptById(Long deptId);
|
|
public Dept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
|
|
public List<String> selectRoleDeptTree(Long roleId);
|
|
public void updateDeptStatus(Dept dept);
|
|
public List<Dept> selectChildrenDeptById(Long deptId);
|
}
|