IDictBizService.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.modules.system.service;
  18. import com.baomidou.mybatisplus.core.metadata.IPage;
  19. import com.baomidou.mybatisplus.extension.service.IService;
  20. import org.springblade.core.mp.support.Query;
  21. import org.springblade.modules.system.entity.DictBiz;
  22. import org.springblade.modules.system.vo.DictBizVO;
  23. import java.util.List;
  24. import java.util.Map;
  25. /**
  26. * 服务类
  27. *
  28. * @author Chill
  29. */
  30. public interface IDictBizService extends IService<DictBiz> {
  31. /**
  32. * 树形结构
  33. *
  34. * @return
  35. */
  36. List<DictBizVO> tree();
  37. /**
  38. * 树形结构
  39. *
  40. * @return
  41. */
  42. List<DictBizVO> parentTree();
  43. /**
  44. * 获取字典表对应中文
  45. *
  46. * @param code 字典编号
  47. * @param dictKey 字典序号
  48. * @return
  49. */
  50. String getValue(String code, String dictKey);
  51. /**
  52. * 获取字典表
  53. *
  54. * @param code 字典编号
  55. * @return
  56. */
  57. List<DictBiz> getList(String code);
  58. /**
  59. * 新增或修改
  60. *
  61. * @param dict
  62. * @return
  63. */
  64. boolean submit(DictBiz dict);
  65. /**
  66. * 删除字典
  67. *
  68. * @param ids
  69. * @return
  70. */
  71. boolean removeDict(String ids);
  72. /**
  73. * 顶级列表
  74. *
  75. * @param dict
  76. * @param query
  77. * @return
  78. */
  79. IPage<DictBizVO> parentList(Map<String, Object> dict, Query query);
  80. /**
  81. * 子列表
  82. *
  83. * @param dict
  84. * @param parentId
  85. * @return
  86. */
  87. List<DictBizVO> childList(Map<String, Object> dict, Long parentId);
  88. List<DictBiz> getZbytZd();
  89. String getCode(String code, String key);
  90. List<DictBiz> getZblxZd();
  91. }