123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- package com.ruoyi.system.mapper;
- import java.util.List;
- import org.apache.ibatis.annotations.Param;
- import com.ruoyi.common.core.domain.entity.SysDept;
- import org.apache.ibatis.annotations.Select;
- public interface SysDeptMapper
- {
-
- public List<SysDept> selectDeptList(SysDept dept);
-
- public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
-
- public SysDept selectDeptById(Long deptId);
-
- public List<SysDept> selectChildrenDeptById(Long deptId);
-
- public int selectNormalChildrenDeptById(Long deptId);
-
- public int hasChildByDeptId(Long deptId);
-
- public int checkDeptExistUser(Long deptId);
-
- public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
-
- public int insertDept(SysDept dept);
-
- public int updateDept(SysDept dept);
-
- public void updateDeptStatusNormal(Long[] deptIds);
-
- public int updateDeptChildren(@Param("depts") List<SysDept> depts);
-
- public int deleteDeptById(Long deptId);
-
- @Select("select dept_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, status, del_flag, create_by, create_time from sys_dept")
- List<SysDept> allDept();
- }
|