package org.ruoyi.system.domain;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import org.ruoyi.common.core.constant.UserConstants;
|
import org.ruoyi.common.tenant.core.TenantEntity;
|
|
/**
|
* 字典数据表 sys_dict_data
|
*
|
* @author Lion Li
|
*/
|
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@TableName("sys_dict_data")
|
public class SysDictData extends TenantEntity {
|
|
/**
|
* 字典编码
|
*/
|
@TableId(value = "dict_code")
|
private Long dictCode;
|
|
/**
|
* 字典排序
|
*/
|
@TableField("DICT_SORT")
|
private Integer dictSort;
|
|
/**
|
* 字典标签
|
*/
|
@TableField("DICT_LABEL")
|
private String dictLabel;
|
|
/**
|
* 字典键值
|
*/
|
@TableField("DICT_VALUE")
|
private String dictValue;
|
|
/**
|
* 字典类型
|
*/
|
@TableField("DICT_TYPE")
|
private String dictType;
|
|
/**
|
* 样式属性(其他样式扩展)
|
*/
|
@TableField("CSS_CLASS")
|
private String cssClass;
|
|
/**
|
* 表格字典样式
|
*/
|
@TableField("LIST_CLASS")
|
private String listClass;
|
|
/**
|
* 是否默认(Y是 N否)
|
*/
|
@TableField("IS_DEFAULT")
|
private String isDefault;
|
|
/**
|
* 状态(0正常 1停用)
|
*/
|
@TableField("STATUS")
|
private String status;
|
|
/**
|
* 备注
|
*/
|
@TableField("REMARK")
|
private String remark;
|
|
public boolean getDefault() {
|
return UserConstants.YES.equals(this.isDefault);
|
}
|
|
}
|