提交 | 用户 | 时间
|
e57a89
|
1 |
package com.jcdm.common.core.domain; |
懒 |
2 |
|
|
3 |
import java.io.Serializable; |
|
4 |
import java.util.Date; |
|
5 |
import java.util.HashMap; |
|
6 |
import java.util.Map; |
|
7 |
import com.fasterxml.jackson.annotation.JsonFormat; |
|
8 |
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
9 |
import com.fasterxml.jackson.annotation.JsonInclude; |
|
10 |
|
|
11 |
/** |
|
12 |
* Entity基类 |
|
13 |
* |
|
14 |
* @author jc |
|
15 |
*/ |
|
16 |
public class BaseEntity implements Serializable |
|
17 |
{ |
|
18 |
private static final long serialVersionUID = 1L; |
|
19 |
|
|
20 |
/** 搜索值 */ |
|
21 |
@JsonIgnore |
|
22 |
private String searchValue; |
|
23 |
|
|
24 |
/** 创建者 */ |
|
25 |
private String createBy; |
|
26 |
|
|
27 |
/** 创建时间 */ |
|
28 |
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|
29 |
private Date createTime; |
|
30 |
|
|
31 |
/** 更新者 */ |
|
32 |
private String updateBy; |
|
33 |
|
|
34 |
/** 更新时间 */ |
|
35 |
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|
36 |
private Date updateTime; |
|
37 |
|
|
38 |
/** 备注 */ |
|
39 |
private String remark; |
|
40 |
|
|
41 |
/** 请求参数 */ |
|
42 |
@JsonInclude(JsonInclude.Include.NON_EMPTY) |
|
43 |
private Map<String, Object> params; |
|
44 |
|
|
45 |
public String getSearchValue() |
|
46 |
{ |
|
47 |
return searchValue; |
|
48 |
} |
|
49 |
|
|
50 |
public void setSearchValue(String searchValue) |
|
51 |
{ |
|
52 |
this.searchValue = searchValue; |
|
53 |
} |
|
54 |
|
|
55 |
public String getCreateBy() |
|
56 |
{ |
|
57 |
return createBy; |
|
58 |
} |
|
59 |
|
|
60 |
public void setCreateBy(String createBy) |
|
61 |
{ |
|
62 |
this.createBy = createBy; |
|
63 |
} |
|
64 |
|
|
65 |
public Date getCreateTime() |
|
66 |
{ |
|
67 |
return createTime; |
|
68 |
} |
|
69 |
|
|
70 |
public void setCreateTime(Date createTime) |
|
71 |
{ |
|
72 |
this.createTime = createTime; |
|
73 |
} |
|
74 |
|
|
75 |
public String getUpdateBy() |
|
76 |
{ |
|
77 |
return updateBy; |
|
78 |
} |
|
79 |
|
|
80 |
public void setUpdateBy(String updateBy) |
|
81 |
{ |
|
82 |
this.updateBy = updateBy; |
|
83 |
} |
|
84 |
|
|
85 |
public Date getUpdateTime() |
|
86 |
{ |
|
87 |
return updateTime; |
|
88 |
} |
|
89 |
|
|
90 |
public void setUpdateTime(Date updateTime) |
|
91 |
{ |
|
92 |
this.updateTime = updateTime; |
|
93 |
} |
|
94 |
|
|
95 |
public String getRemark() |
|
96 |
{ |
|
97 |
return remark; |
|
98 |
} |
|
99 |
|
|
100 |
public void setRemark(String remark) |
|
101 |
{ |
|
102 |
this.remark = remark; |
|
103 |
} |
|
104 |
|
|
105 |
public Map<String, Object> getParams() |
|
106 |
{ |
|
107 |
if (params == null) |
|
108 |
{ |
|
109 |
params = new HashMap<>(); |
|
110 |
} |
|
111 |
return params; |
|
112 |
} |
|
113 |
|
|
114 |
public void setParams(Map<String, Object> params) |
|
115 |
{ |
|
116 |
this.params = params; |
|
117 |
} |
|
118 |
} |