1615b91f97bfdecdacc0274b11acbca0709bc76e.svn-base 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package org.jeecg.modules.system.model;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import org.jeecg.modules.system.entity.SysDict;
  5. import com.baomidou.mybatisplus.annotation.IdType;
  6. import com.baomidou.mybatisplus.annotation.TableId;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. import lombok.experimental.Accessors;
  10. /**
  11. * <p>
  12. * 字典表
  13. * </p>
  14. *
  15. * @Author zhangweijian
  16. * @since 2018-12-28
  17. */
  18. @Data
  19. @EqualsAndHashCode(callSuper = false)
  20. @Accessors(chain = true)
  21. public class SysDictTree implements Serializable {
  22. private static final long serialVersionUID = 1L;
  23. private String key;
  24. private String title;
  25. /**
  26. * id
  27. */
  28. @TableId(type = IdType.ASSIGN_ID)
  29. private String id;
  30. /**
  31. * 字典类型,0 string,1 number类型,2 boolean
  32. * 前端js对stirng类型和number类型 boolean 类型敏感,需要区分。在select 标签匹配的时候会用到
  33. * 默认为string类型
  34. */
  35. private Integer type;
  36. /**
  37. * 字典名称
  38. */
  39. private String dictName;
  40. /**
  41. * 字典编码
  42. */
  43. private String dictCode;
  44. /**
  45. * 描述
  46. */
  47. private String description;
  48. /**
  49. * 删除状态
  50. */
  51. private Integer delFlag;
  52. /**
  53. * 创建人
  54. */
  55. private String createBy;
  56. /**
  57. * 创建时间
  58. */
  59. private Date createTime;
  60. /**
  61. * 更新人
  62. */
  63. private String updateBy;
  64. /**
  65. * 更新时间
  66. */
  67. private Date updateTime;
  68. public SysDictTree(SysDict node) {
  69. this.id = node.getId();
  70. this.key = node.getId();
  71. this.title = node.getDictName();
  72. this.dictCode = node.getDictCode();
  73. this.description = node.getDescription();
  74. this.delFlag = node.getDelFlag();
  75. this.type = node.getType();
  76. }
  77. }