ArchivesTreeService.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.gz.service.system;
  2. import cn.hutool.core.lang.tree.Tree;
  3. import com.github.pagehelper.PageInfo;
  4. import com.gz.dto.system.ArchivesTreeDTO;
  5. import java.util.List;
  6. /**
  7. * @description 档案树Service
  8. * @author LiuChangLan
  9. * @since 2021/2/23 15:50
  10. */
  11. public interface ArchivesTreeService {
  12. /**
  13. * @description 增
  14. * @author LiuChangLan
  15. * @since 2020/9/4 14:46
  16. */
  17. Integer insert(ArchivesTreeDTO dto);
  18. /**
  19. * @description 删
  20. * @author LiuChangLan
  21. * @since 2020/9/4 14:46
  22. */
  23. Integer delete(Integer id);
  24. /**
  25. * @description 改
  26. * @author LiuChangLan
  27. * @since 2020/9/4 14:46
  28. */
  29. Integer update(ArchivesTreeDTO dto);
  30. /**
  31. * @description 查
  32. * @author LiuChangLan
  33. * @since 2020/9/4 14:46
  34. */
  35. List<ArchivesTreeDTO> selectAll();
  36. /**
  37. * @description 根据主键查询
  38. * @author LiuChangLan
  39. * @since 2020/9/4 16:36
  40. */
  41. ArchivesTreeDTO selectByPrimaryKey(Integer id);
  42. /**
  43. * @description 查询列表(根据排序)
  44. * @author LiuChangLan
  45. * @since 2021/2/23 16:18
  46. */
  47. List<ArchivesTreeDTO> selectByOrder();
  48. /**
  49. * @description 查询树行
  50. * @author LiuChangLan
  51. * @since 2021/2/23 16:34
  52. */
  53. List<Tree<String>> selectTree();
  54. /**
  55. * @description 上移
  56. * @author LiuChangLan
  57. * @since 2020/9/8 10:46
  58. */
  59. void upMove(Integer id);
  60. /**
  61. * @description 下移
  62. * @author LiuChangLan
  63. * @since 2020/9/8 11:02
  64. */
  65. void downMove(Integer id);
  66. /**
  67. * @description 根据id查询子项
  68. * @author LiuChangLan
  69. * @since 2021/2/24 16:57
  70. */
  71. List<ArchivesTreeDTO> selectChildById(Integer id);
  72. /**
  73. * @description 根据code 查询父节点信息 找不到返回本节点信息
  74. * @author LiuChangLan
  75. * @since 2021/2/24 17:23
  76. */
  77. ArchivesTreeDTO selectParentByCode(String code);
  78. }