You cannot 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.3 KiB
Java

8 years ago
package com.ruoyi.system.mapper;
8 years ago
import java.util.List;
import org.apache.ibatis.annotations.Param;
8 years ago
import com.ruoyi.system.domain.SysDept;
8 years ago
/**
*
*
* @author ruoyi
*/
8 years ago
public interface SysDeptMapper
8 years ago
{
/**
*
*
* @param dept
* @return
*/
8 years ago
public int selectDeptCount(SysDept dept);
8 years ago
/**
*
*
* @param deptId ID
* @return
*/
public int checkDeptExistUser(Long deptId);
/**
*
8 years ago
*
* @param dept
* @return
*/
8 years ago
public List<SysDept> selectDeptList(SysDept dept);
8 years ago
/**
*
*
* @param deptId ID
* @return
*/
public int deleteDeptById(Long deptId);
/**
*
*
* @param dept
* @return
*/
8 years ago
public int insertDept(SysDept dept);
8 years ago
/**
*
*
* @param dept
* @return
*/
8 years ago
public int updateDept(SysDept dept);
8 years ago
/**
*
*
* @param depts
* @return
*/
8 years ago
public int updateDeptChildren(@Param("depts") List<SysDept> depts);
8 years ago
/**
* ID
*
* @param deptId ID
* @return
*/
8 years ago
public SysDept selectDeptById(Long deptId);
8 years ago
/**
*
*
* @param deptName
8 years ago
* @param parentId ID
8 years ago
* @return
*/
8 years ago
public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
8 years ago
/**
* ID
*
* @param roleId ID
* @return
*/
public List<String> selectRoleDeptTree(Long roleId);
/**
*
*
* @param dept
*/
public void updateDeptStatus(SysDept dept);
/**
* ID
* @param id
* @return
*/
public List<SysDept> selectChildrenDeptById(Long id);
8 years ago
}