提交 | 用户 | 时间
|
0cceb6
|
1 |
package com.jcdm.system.domain; |
Y |
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.core.domain.BaseEntity; |
|
10 |
|
|
11 |
/** |
|
12 |
* 参数配置表 sys_config |
|
13 |
* |
|
14 |
* @author jc |
|
15 |
*/ |
|
16 |
public class SysConfig extends BaseEntity |
|
17 |
{ |
|
18 |
private static final long serialVersionUID = 1L; |
|
19 |
|
|
20 |
/** 参数主键 */ |
|
21 |
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC) |
|
22 |
private Long configId; |
|
23 |
|
|
24 |
/** 参数名称 */ |
|
25 |
@Excel(name = "参数名称") |
|
26 |
private String configName; |
|
27 |
|
|
28 |
/** 参数键名 */ |
|
29 |
@Excel(name = "参数键名") |
|
30 |
private String configKey; |
|
31 |
|
|
32 |
/** 参数键值 */ |
|
33 |
@Excel(name = "参数键值") |
|
34 |
private String configValue; |
|
35 |
|
|
36 |
/** 系统内置(Y是 N否) */ |
|
37 |
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否") |
|
38 |
private String configType; |
|
39 |
|
|
40 |
public Long getConfigId() |
|
41 |
{ |
|
42 |
return configId; |
|
43 |
} |
|
44 |
|
|
45 |
public void setConfigId(Long configId) |
|
46 |
{ |
|
47 |
this.configId = configId; |
|
48 |
} |
|
49 |
|
|
50 |
@NotBlank(message = "参数名称不能为空") |
|
51 |
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符") |
|
52 |
public String getConfigName() |
|
53 |
{ |
|
54 |
return configName; |
|
55 |
} |
|
56 |
|
|
57 |
public void setConfigName(String configName) |
|
58 |
{ |
|
59 |
this.configName = configName; |
|
60 |
} |
|
61 |
|
|
62 |
@NotBlank(message = "参数键名长度不能为空") |
|
63 |
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") |
|
64 |
public String getConfigKey() |
|
65 |
{ |
|
66 |
return configKey; |
|
67 |
} |
|
68 |
|
|
69 |
public void setConfigKey(String configKey) |
|
70 |
{ |
|
71 |
this.configKey = configKey; |
|
72 |
} |
|
73 |
|
|
74 |
@NotBlank(message = "参数键值不能为空") |
|
75 |
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") |
|
76 |
public String getConfigValue() |
|
77 |
{ |
|
78 |
return configValue; |
|
79 |
} |
|
80 |
|
|
81 |
public void setConfigValue(String configValue) |
|
82 |
{ |
|
83 |
this.configValue = configValue; |
|
84 |
} |
|
85 |
|
|
86 |
public String getConfigType() |
|
87 |
{ |
|
88 |
return configType; |
|
89 |
} |
|
90 |
|
|
91 |
public void setConfigType(String configType) |
|
92 |
{ |
|
93 |
this.configType = configType; |
|
94 |
} |
|
95 |
|
|
96 |
@Override |
|
97 |
public String toString() { |
|
98 |
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
99 |
.append("configId", getConfigId()) |
|
100 |
.append("configName", getConfigName()) |
|
101 |
.append("configKey", getConfigKey()) |
|
102 |
.append("configValue", getConfigValue()) |
|
103 |
.append("configType", getConfigType()) |
|
104 |
.append("createBy", getCreateBy()) |
|
105 |
.append("createTime", getCreateTime()) |
|
106 |
.append("updateBy", getUpdateBy()) |
|
107 |
.append("updateTime", getUpdateTime()) |
|
108 |
.append("remark", getRemark()) |
|
109 |
.toString(); |
|
110 |
} |
|
111 |
} |