DictData.java 3.23 KB
package com.huaheng.pc.system.dict.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Maps;
import com.huaheng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * 字典数据表 sys_dict_data
 * 
 * @author huaheng
 */
@Data
@TableName(value = "sys_dict_data")
public class DictData
{
    private static final long serialVersionUID = 1L;

    /** 字典编码 */
    @Excel(name = "字典明细id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /** 字典头id */
    @Excel(name = "字典头id")
    @TableField(value = "headerId")
    private Integer headerId;

    /** 仓库Id */
    @Excel(name = "仓库Id")
    @TableField(value = "warehouseId")
    private Integer warehouseId;

    /** 仓库编码 */
    @Excel(name = "仓库编码")
    @TableField(value = "warehouseCode")
    private String warehouseCode;

    /** 字典排序 */
    @Excel(name = "字典排序")
    @TableField(value = "dictSort")
    private Integer dictSort;

    /** 字典标签 */
    @Excel(name = "字典标签")
    @TableField(value = "dictLabel")
    private String dictLabel;

    /** 字典键值 */
    @Excel(name = "字典键值")
    @TableField(value = "dictValue")
    private String dictValue;

    /** 字典类型 */
    @Excel(name = "字典类型")
    @TableField(value = "dictType")
    private String dictType;

    /** 字典样式 */
    @Excel(name = "字典样式")
    @TableField(value = "cssClass")
    private String cssClass;

    /** 表格字典样式 */
    @TableField
    private String listClass;

    /** 是否默认(Y是 N否) */
    @Excel(name = "是否默认")
    @TableField
    private String isDefault;

    /** 启用(0未启用 1已启用) */
    @Excel(name = "启用")
    @TableField
    private Boolean enable;

    /** 删除(0未删除 1已删除) */
    @Excel(name = "删除")
    @TableField
    private Boolean deleted;

    /** 搜索值 */
    private String searchValue;

    /** 创建者 */
    @TableField
    private String createBy;

    /** 创建时间 */
    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    @TableField
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField
    private Date updateTime;

    /** 备注 */
//    @TableField(exist=false)
    @TableField
    private String remark;

    /** 请求参数 */
    private Map<String, Object> params;

    @Override
    public String toString()
    {
        return "DictData [id=" + id + ", headerId=" + headerId + ", warehouseId=" + warehouseId
                + ", warehouseCode=" + warehouseCode + ", dictSort=" + dictSort + ", dictLabel=" + dictLabel
                + ", dictValue=" + dictValue + ", dictType=" + dictType + ", cssClass=" + cssClass
                + ", isDefault=" + isDefault + ", enable=" + enable + ", deleted=" + deleted + "]";
    }

}