| package com.zy.crm.system.entity; | 
|   | 
| import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
|   | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import java.io.Serializable; | 
|   | 
| @Data | 
| @TableName("sys_dic") | 
| public class Dic implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * 代号 | 
|      */ | 
|     @ApiModelProperty(value= "代号") | 
|     @TableId(value = "code", type = IdType.INPUT) | 
|     private String code; | 
|   | 
|     /** | 
|      * 名称 | 
|      */ | 
|     @ApiModelProperty(value= "名称") | 
|     private String name; | 
|   | 
|     /** | 
|      * 上级 | 
|      */ | 
|     @ApiModelProperty(value= "上级") | 
|     private String parent; | 
|   | 
|     public Dic() {} | 
|   | 
|     public Dic(String code,String name,String parent) { | 
|         this.code = code; | 
|         this.name = name; | 
|         this.parent = parent; | 
|     } | 
|   | 
| //    Dic dic = new Dic( | 
| //            null,    // 代号[非空] | 
| //            null,    // 名称 | 
| //            null    // 上级 | 
| //    ); | 
|   | 
|   | 
| } |