疯狂的狮子li
2021-09-13 2af534eea471f4adb104906c7a814bcc66d4d68d
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
@@ -1,7 +1,7 @@
package com.ruoyi.system.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@@ -11,7 +11,7 @@
 *
 * @author ruoyi
 */
public interface SysDeptMapper extends BaseMapper<SysDept> {
public interface SysDeptMapper extends BaseMapperPlus<SysDept> {
    /**
     * 查询部门管理数据
@@ -24,10 +24,18 @@
    /**
     * 根据角色ID查询部门树信息
     *
     * @param roleId            角色ID
     * @param roleId 角色ID
     * @param deptCheckStrictly 部门树选择项是否关联显示
     * @return 选中部门列表
     */
    public List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
   /**
    * 修改子元素关系
    *
    * @param depts 子元素
    * @return 结果
    */
   public int updateDeptChildren(@Param("depts") List<SysDept> depts);
}