提交 | 用户 | 时间
|
e57a89
|
1 |
package com.jcdm.common.core.domain.entity; |
懒 |
2 |
|
|
3 |
import javax.validation.constraints.NotBlank; |
|
4 |
import javax.validation.constraints.Size; |
|
5 |
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
6 |
import org.apache.commons.lang3.builder.ToStringStyle; |
|
7 |
import com.jcdm.common.annotation.Excel; |
|
8 |
import com.jcdm.common.annotation.Excel.ColumnType; |
|
9 |
import com.jcdm.common.constant.UserConstants; |
|
10 |
import com.jcdm.common.core.domain.BaseEntity; |
|
11 |
|
|
12 |
/** |
|
13 |
* 字典数据表 sys_dict_data |
|
14 |
* |
|
15 |
* @author jc |
|
16 |
*/ |
|
17 |
public class SysDictData extends BaseEntity |
|
18 |
{ |
|
19 |
private static final long serialVersionUID = 1L; |
|
20 |
|
|
21 |
/** 字典编码 */ |
|
22 |
@Excel(name = "字典编码", cellType = ColumnType.NUMERIC) |
|
23 |
private Long dictCode; |
|
24 |
|
|
25 |
/** 字典排序 */ |
|
26 |
@Excel(name = "字典排序", cellType = ColumnType.NUMERIC) |
|
27 |
private Long dictSort; |
|
28 |
|
|
29 |
/** 字典标签 */ |
|
30 |
@Excel(name = "字典标签") |
|
31 |
private String dictLabel; |
|
32 |
|
|
33 |
/** 字典键值 */ |
|
34 |
@Excel(name = "字典键值") |
|
35 |
private String dictValue; |
|
36 |
|
|
37 |
/** 字典类型 */ |
|
38 |
@Excel(name = "字典类型") |
|
39 |
private String dictType; |
|
40 |
|
|
41 |
/** 样式属性(其他样式扩展) */ |
|
42 |
private String cssClass; |
|
43 |
|
|
44 |
/** 表格字典样式 */ |
|
45 |
private String listClass; |
|
46 |
|
|
47 |
/** 是否默认(Y是 N否) */ |
|
48 |
@Excel(name = "是否默认", readConverterExp = "Y=是,N=否") |
|
49 |
private String isDefault; |
|
50 |
|
|
51 |
/** 状态(0正常 1停用) */ |
|
52 |
@Excel(name = "状态", readConverterExp = "0=正常,1=停用") |
|
53 |
private String status; |
|
54 |
|
|
55 |
public Long getDictCode() |
|
56 |
{ |
|
57 |
return dictCode; |
|
58 |
} |
|
59 |
|
|
60 |
public void setDictCode(Long dictCode) |
|
61 |
{ |
|
62 |
this.dictCode = dictCode; |
|
63 |
} |
|
64 |
|
|
65 |
public Long getDictSort() |
|
66 |
{ |
|
67 |
return dictSort; |
|
68 |
} |
|
69 |
|
|
70 |
public void setDictSort(Long dictSort) |
|
71 |
{ |
|
72 |
this.dictSort = dictSort; |
|
73 |
} |
|
74 |
|
|
75 |
@NotBlank(message = "字典标签不能为空") |
|
76 |
@Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符") |
|
77 |
public String getDictLabel() |
|
78 |
{ |
|
79 |
return dictLabel; |
|
80 |
} |
|
81 |
|
|
82 |
public void setDictLabel(String dictLabel) |
|
83 |
{ |
|
84 |
this.dictLabel = dictLabel; |
|
85 |
} |
|
86 |
|
|
87 |
@NotBlank(message = "字典键值不能为空") |
|
88 |
@Size(min = 0, max = 100, message = "字典键值长度不能超过100个字符") |
|
89 |
public String getDictValue() |
|
90 |
{ |
|
91 |
return dictValue; |
|
92 |
} |
|
93 |
|
|
94 |
public void setDictValue(String dictValue) |
|
95 |
{ |
|
96 |
this.dictValue = dictValue; |
|
97 |
} |
|
98 |
|
|
99 |
@NotBlank(message = "字典类型不能为空") |
|
100 |
@Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符") |
|
101 |
public String getDictType() |
|
102 |
{ |
|
103 |
return dictType; |
|
104 |
} |
|
105 |
|
|
106 |
public void setDictType(String dictType) |
|
107 |
{ |
|
108 |
this.dictType = dictType; |
|
109 |
} |
|
110 |
|
|
111 |
@Size(min = 0, max = 100, message = "样式属性长度不能超过100个字符") |
|
112 |
public String getCssClass() |
|
113 |
{ |
|
114 |
return cssClass; |
|
115 |
} |
|
116 |
|
|
117 |
public void setCssClass(String cssClass) |
|
118 |
{ |
|
119 |
this.cssClass = cssClass; |
|
120 |
} |
|
121 |
|
|
122 |
public String getListClass() |
|
123 |
{ |
|
124 |
return listClass; |
|
125 |
} |
|
126 |
|
|
127 |
public void setListClass(String listClass) |
|
128 |
{ |
|
129 |
this.listClass = listClass; |
|
130 |
} |
|
131 |
|
|
132 |
public boolean getDefault() |
|
133 |
{ |
|
134 |
return UserConstants.YES.equals(this.isDefault); |
|
135 |
} |
|
136 |
|
|
137 |
public String getIsDefault() |
|
138 |
{ |
|
139 |
return isDefault; |
|
140 |
} |
|
141 |
|
|
142 |
public void setIsDefault(String isDefault) |
|
143 |
{ |
|
144 |
this.isDefault = isDefault; |
|
145 |
} |
|
146 |
|
|
147 |
public String getStatus() |
|
148 |
{ |
|
149 |
return status; |
|
150 |
} |
|
151 |
|
|
152 |
public void setStatus(String status) |
|
153 |
{ |
|
154 |
this.status = status; |
|
155 |
} |
|
156 |
|
|
157 |
@Override |
|
158 |
public String toString() { |
|
159 |
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
160 |
.append("dictCode", getDictCode()) |
|
161 |
.append("dictSort", getDictSort()) |
|
162 |
.append("dictLabel", getDictLabel()) |
|
163 |
.append("dictValue", getDictValue()) |
|
164 |
.append("dictType", getDictType()) |
|
165 |
.append("cssClass", getCssClass()) |
|
166 |
.append("listClass", getListClass()) |
|
167 |
.append("isDefault", getIsDefault()) |
|
168 |
.append("status", getStatus()) |
|
169 |
.append("createBy", getCreateBy()) |
|
170 |
.append("createTime", getCreateTime()) |
|
171 |
.append("updateBy", getUpdateBy()) |
|
172 |
.append("updateTime", getUpdateTime()) |
|
173 |
.append("remark", getRemark()) |
|
174 |
.toString(); |
|
175 |
} |
|
176 |
} |