| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package com.ydtech.modules.admin.service;
- import com.baomidou.mybatisplus.extension.service.IService;
- import com.ydtech.core.page.PageRequest;
- import com.ydtech.core.page.PageResult;
- import com.ydtech.modules.admin.model.SysDept;
- import com.ydtech.modules.admin.model.vo.SysDeptVo;
- import com.ydtech.modules.admin.model.vo.TreeSysDeptVO;
- import java.util.List;
- public interface SysDeptService extends IService<SysDept> {
- /**
- * 查找自已有权限的部门树
- *
- * @param deptCode
- * @return
- */
- List<TreeSysDeptVO> selectListTreeSysDeptVO(String deptCode);
- //
- PageResult findSubDepts(PageRequest pageRequest);
- String findMaxDeptId(String deptId);
- //
- String findMaxHouseId(String deptId);
- List<TreeSysDeptVO> selectListWhere(String where, Object[] paramValues);
- /**
- * 获取树结构
- *
- * @param deptId 部门id
- * @return 返回部门列表
- */
- List<SysDept> findTree(String deptId);
- /**
- * 增加机构
- * @param sysDept 机构信息
- */
- void addDept(SysDeptVo sysDeptVo);
- /**
- * 删除机构
- *
- * @param deptId 机构id
- */
- void deleteDept(String deptId);
- }
|