BaseCustomerIndustryTree.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. package org.jeecg.modules.basedata.model;
  2. import io.swagger.annotations.ApiModelProperty;
  3. import io.swagger.models.auth.In;
  4. import org.jeecg.modules.basedata.entity.BaseCustomerIndustry;
  5. import java.util.List;
  6. /**
  7. * 功能描述:客商行业
  8. *
  9. * @Author: chenchuang
  10. * @Date: 2021/11/11 18:58
  11. */
  12. public class BaseCustomerIndustryTree {
  13. @ApiModelProperty("id")
  14. private String id;
  15. @ApiModelProperty("key")
  16. private String key;
  17. @ApiModelProperty("title")
  18. private String title;
  19. @ApiModelProperty("父节点id")
  20. private String parentId;
  21. @ApiModelProperty("行业编码")
  22. private String code;
  23. @ApiModelProperty("行业名称")
  24. private String name;
  25. @ApiModelProperty("状态(0:未启用, 1:启用)")
  26. private Integer status;
  27. @ApiModelProperty("子节点数据")
  28. private List<BaseCustomerIndustryTree> children;
  29. @ApiModelProperty(" 是否叶子节点: 1:是 0:不是")
  30. private boolean isLeaf;
  31. private Integer sort;
  32. private static final long serialVersionUID = 1L;
  33. public BaseCustomerIndustryTree() {
  34. }
  35. public BaseCustomerIndustryTree(BaseCustomerIndustry baseCustomerIndustry) {
  36. this.id = baseCustomerIndustry.getId();
  37. this.key = baseCustomerIndustry.getId();
  38. this.title = baseCustomerIndustry.getName();
  39. this.parentId = baseCustomerIndustry.getParentId();
  40. this.code = baseCustomerIndustry.getCode();
  41. this.status = baseCustomerIndustry.getStatus();
  42. this.sort=baseCustomerIndustry.getSort();
  43. this.isLeaf = false;
  44. }
  45. public Integer getSort() {
  46. return sort;
  47. }
  48. public void setSort(Integer sort) {
  49. this.sort = sort;
  50. }
  51. public String getId() {
  52. return id;
  53. }
  54. public void setId(String id) {
  55. this.id = id;
  56. }
  57. public String getKey() {
  58. return key;
  59. }
  60. public void setKey(String key) {
  61. this.key = key;
  62. }
  63. public String getTitle() {
  64. return title;
  65. }
  66. public void setTitle(String title) {
  67. this.title = title;
  68. }
  69. public String getParentId() {
  70. return parentId;
  71. }
  72. public void setParentId(String parentId) {
  73. this.parentId = parentId;
  74. }
  75. public String getCode() {
  76. return code;
  77. }
  78. public void setCode(String code) {
  79. this.code = code;
  80. }
  81. public String getName() {
  82. return name;
  83. }
  84. public void setName(String name) {
  85. this.name = name;
  86. }
  87. public Integer getStatus() {
  88. return status;
  89. }
  90. public void setStatus(Integer status) {
  91. this.status = status;
  92. }
  93. public List<BaseCustomerIndustryTree> getChildren() {
  94. return children;
  95. }
  96. public void setChildren(List<BaseCustomerIndustryTree> children) {
  97. if (children==null){
  98. this.isLeaf=true;
  99. }
  100. this.children = children;
  101. }
  102. public boolean getIsLeaf() {
  103. return isLeaf;
  104. }
  105. public void setIsLeaf(boolean leaf) {
  106. isLeaf = leaf;
  107. }
  108. }