SysDeptService.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.ydtech.modules.admin.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.ydtech.core.page.PageRequest;
  4. import com.ydtech.core.page.PageResult;
  5. import com.ydtech.modules.admin.model.SysDept;
  6. import com.ydtech.modules.admin.model.vo.SysDeptVo;
  7. import com.ydtech.modules.admin.model.vo.TreeSysDeptVO;
  8. import java.util.List;
  9. public interface SysDeptService extends IService<SysDept> {
  10. /**
  11. * 查找自已有权限的部门树
  12. *
  13. * @param deptCode
  14. * @return
  15. */
  16. List<TreeSysDeptVO> selectListTreeSysDeptVO(String deptCode);
  17. //
  18. PageResult findSubDepts(PageRequest pageRequest);
  19. String findMaxDeptId(String deptId);
  20. //
  21. String findMaxHouseId(String deptId);
  22. List<TreeSysDeptVO> selectListWhere(String where, Object[] paramValues);
  23. /**
  24. * 获取树结构
  25. *
  26. * @param deptId 部门id
  27. * @return 返回部门列表
  28. */
  29. List<SysDept> findTree(String deptId);
  30. /**
  31. * 增加机构
  32. * @param sysDept 机构信息
  33. */
  34. void addDept(SysDeptVo sysDeptVo);
  35. /**
  36. * 删除机构
  37. *
  38. * @param deptId 机构id
  39. */
  40. void deleteDept(String deptId);
  41. }