123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- package org.jeecg.modules.system.model;
- import java.io.Serializable;
- import java.util.Date;
- import org.jeecg.modules.system.entity.SysDict;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableId;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import lombok.experimental.Accessors;
- /**
- * <p>
- * 字典表
- * </p>
- *
- * @Author zhangweijian
- * @since 2018-12-28
- */
- @Data
- @EqualsAndHashCode(callSuper = false)
- @Accessors(chain = true)
- public class SysDictTree implements Serializable {
- private static final long serialVersionUID = 1L;
- private String key;
-
- private String title;
-
- /**
- * id
- */
- @TableId(type = IdType.ASSIGN_ID)
- private String id;
- /**
- * 字典类型,0 string,1 number类型,2 boolean
- * 前端js对stirng类型和number类型 boolean 类型敏感,需要区分。在select 标签匹配的时候会用到
- * 默认为string类型
- */
- private Integer type;
-
- /**
- * 字典名称
- */
- private String dictName;
- /**
- * 字典编码
- */
- private String dictCode;
- /**
- * 描述
- */
- private String description;
- /**
- * 删除状态
- */
- private Integer delFlag;
- /**
- * 创建人
- */
- private String createBy;
- /**
- * 创建时间
- */
- private Date createTime;
- /**
- * 更新人
- */
- private String updateBy;
- /**
- * 更新时间
- */
- private Date updateTime;
-
- public SysDictTree(SysDict node) {
- this.id = node.getId();
- this.key = node.getId();
- this.title = node.getDictName();
- this.dictCode = node.getDictCode();
- this.description = node.getDescription();
- this.delFlag = node.getDelFlag();
- this.type = node.getType();
- }
-
- }
|