提交 | 用户 | 时间
|
e57a89
|
1 |
package com.jcdm.system.domain; |
懒 |
2 |
|
|
3 |
import javax.validation.constraints.NotBlank; |
|
4 |
import javax.validation.constraints.NotNull; |
|
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_post |
|
14 |
* |
|
15 |
* @author jc |
|
16 |
*/ |
|
17 |
public class SysPost extends BaseEntity |
|
18 |
{ |
|
19 |
private static final long serialVersionUID = 1L; |
|
20 |
|
|
21 |
/** 岗位序号 */ |
|
22 |
@Excel(name = "岗位序号", cellType = ColumnType.NUMERIC) |
|
23 |
private Long postId; |
|
24 |
|
|
25 |
/** 岗位编码 */ |
|
26 |
@Excel(name = "岗位编码") |
|
27 |
private String postCode; |
|
28 |
|
|
29 |
/** 岗位名称 */ |
|
30 |
@Excel(name = "岗位名称") |
|
31 |
private String postName; |
|
32 |
|
|
33 |
/** 岗位排序 */ |
|
34 |
@Excel(name = "岗位排序") |
|
35 |
private Integer postSort; |
|
36 |
|
|
37 |
/** 状态(0正常 1停用) */ |
|
38 |
@Excel(name = "状态", readConverterExp = "0=正常,1=停用") |
|
39 |
private String status; |
|
40 |
|
|
41 |
/** 用户是否存在此岗位标识 默认不存在 */ |
|
42 |
private boolean flag = false; |
|
43 |
|
|
44 |
public Long getPostId() |
|
45 |
{ |
|
46 |
return postId; |
|
47 |
} |
|
48 |
|
|
49 |
public void setPostId(Long postId) |
|
50 |
{ |
|
51 |
this.postId = postId; |
|
52 |
} |
|
53 |
|
|
54 |
@NotBlank(message = "岗位编码不能为空") |
|
55 |
@Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符") |
|
56 |
public String getPostCode() |
|
57 |
{ |
|
58 |
return postCode; |
|
59 |
} |
|
60 |
|
|
61 |
public void setPostCode(String postCode) |
|
62 |
{ |
|
63 |
this.postCode = postCode; |
|
64 |
} |
|
65 |
|
|
66 |
@NotBlank(message = "岗位名称不能为空") |
|
67 |
@Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符") |
|
68 |
public String getPostName() |
|
69 |
{ |
|
70 |
return postName; |
|
71 |
} |
|
72 |
|
|
73 |
public void setPostName(String postName) |
|
74 |
{ |
|
75 |
this.postName = postName; |
|
76 |
} |
|
77 |
|
|
78 |
@NotNull(message = "显示顺序不能为空") |
|
79 |
public Integer getPostSort() |
|
80 |
{ |
|
81 |
return postSort; |
|
82 |
} |
|
83 |
|
|
84 |
public void setPostSort(Integer postSort) |
|
85 |
{ |
|
86 |
this.postSort = postSort; |
|
87 |
} |
|
88 |
|
|
89 |
public String getStatus() |
|
90 |
{ |
|
91 |
return status; |
|
92 |
} |
|
93 |
|
|
94 |
public void setStatus(String status) |
|
95 |
{ |
|
96 |
this.status = status; |
|
97 |
} |
|
98 |
|
|
99 |
public boolean isFlag() |
|
100 |
{ |
|
101 |
return flag; |
|
102 |
} |
|
103 |
|
|
104 |
public void setFlag(boolean flag) |
|
105 |
{ |
|
106 |
this.flag = flag; |
|
107 |
} |
|
108 |
|
|
109 |
@Override |
|
110 |
public String toString() { |
|
111 |
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
112 |
.append("postId", getPostId()) |
|
113 |
.append("postCode", getPostCode()) |
|
114 |
.append("postName", getPostName()) |
|
115 |
.append("postSort", getPostSort()) |
|
116 |
.append("status", getStatus()) |
|
117 |
.append("createBy", getCreateBy()) |
|
118 |
.append("createTime", getCreateTime()) |
|
119 |
.append("updateBy", getUpdateBy()) |
|
120 |
.append("updateTime", getUpdateTime()) |
|
121 |
.append("remark", getRemark()) |
|
122 |
.toString(); |
|
123 |
} |
|
124 |
} |