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