提交 | 用户 | 时间
|
e57a89
|
1 |
package com.jcdm.common.core.domain.entity; |
懒 |
2 |
|
|
3 |
import javax.validation.constraints.NotBlank; |
|
4 |
import javax.validation.constraints.Pattern; |
|
5 |
import javax.validation.constraints.Size; |
|
6 |
import org.apache.commons.lang3.builder.ToStringBuilder; |
|
7 |
import org.apache.commons.lang3.builder.ToStringStyle; |
|
8 |
import com.jcdm.common.annotation.Excel; |
|
9 |
import com.jcdm.common.annotation.Excel.ColumnType; |
|
10 |
import com.jcdm.common.core.domain.BaseEntity; |
|
11 |
|
|
12 |
/** |
|
13 |
* 字典类型表 sys_dict_type |
|
14 |
* |
|
15 |
* @author jc |
|
16 |
*/ |
|
17 |
public class SysDictType extends BaseEntity |
|
18 |
{ |
|
19 |
private static final long serialVersionUID = 1L; |
|
20 |
|
|
21 |
/** 字典主键 */ |
|
22 |
@Excel(name = "字典主键", cellType = ColumnType.NUMERIC) |
|
23 |
private Long dictId; |
|
24 |
|
|
25 |
/** 字典名称 */ |
|
26 |
@Excel(name = "字典名称") |
|
27 |
private String dictName; |
|
28 |
|
|
29 |
/** 字典类型 */ |
|
30 |
@Excel(name = "字典类型") |
|
31 |
private String dictType; |
|
32 |
|
|
33 |
/** 状态(0正常 1停用) */ |
|
34 |
@Excel(name = "状态", readConverterExp = "0=正常,1=停用") |
|
35 |
private String status; |
|
36 |
|
|
37 |
public Long getDictId() |
|
38 |
{ |
|
39 |
return dictId; |
|
40 |
} |
|
41 |
|
|
42 |
public void setDictId(Long dictId) |
|
43 |
{ |
|
44 |
this.dictId = dictId; |
|
45 |
} |
|
46 |
|
|
47 |
@NotBlank(message = "字典名称不能为空") |
|
48 |
@Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符") |
|
49 |
public String getDictName() |
|
50 |
{ |
|
51 |
return dictName; |
|
52 |
} |
|
53 |
|
|
54 |
public void setDictName(String dictName) |
|
55 |
{ |
|
56 |
this.dictName = dictName; |
|
57 |
} |
|
58 |
|
|
59 |
@NotBlank(message = "字典类型不能为空") |
|
60 |
@Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符") |
|
61 |
@Pattern(regexp = "^[a-z][a-z0-9_]*$", message = "字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)") |
|
62 |
public String getDictType() |
|
63 |
{ |
|
64 |
return dictType; |
|
65 |
} |
|
66 |
|
|
67 |
public void setDictType(String dictType) |
|
68 |
{ |
|
69 |
this.dictType = dictType; |
|
70 |
} |
|
71 |
|
|
72 |
public String getStatus() |
|
73 |
{ |
|
74 |
return status; |
|
75 |
} |
|
76 |
|
|
77 |
public void setStatus(String status) |
|
78 |
{ |
|
79 |
this.status = status; |
|
80 |
} |
|
81 |
|
|
82 |
@Override |
|
83 |
public String toString() { |
|
84 |
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
85 |
.append("dictId", getDictId()) |
|
86 |
.append("dictName", getDictName()) |
|
87 |
.append("dictType", getDictType()) |
|
88 |
.append("status", getStatus()) |
|
89 |
.append("createBy", getCreateBy()) |
|
90 |
.append("createTime", getCreateTime()) |
|
91 |
.append("updateBy", getUpdateBy()) |
|
92 |
.append("updateTime", getUpdateTime()) |
|
93 |
.append("remark", getRemark()) |
|
94 |
.toString(); |
|
95 |
} |
|
96 |
} |