|
1
2
|
package com.huaheng.pc.system.dept.domain;
|
|
3
4
5
6
|
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
|
|
7
8
|
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Maps;
|
|
9
10
|
import lombok.Data;
|
|
11
|
import java.io.Serializable;
|
|
12
13
14
15
16
17
18
19
|
import java.util.Date;
import java.util.Map;
/**
* 部门对象 sys_dept
*
* @author huaheng
*/
|
|
20
21
|
@Data
@TableName(value = "sys_dept")
|
|
22
|
public class Dept implements Serializable
|
|
23
24
25
|
{
private static final long serialVersionUID = 1L;
/** 部门ID */
|
|
26
|
@TableId(value = "id", type = IdType.AUTO)
|
|
27
28
|
private Integer id;
/** 父部门ID */
|
|
29
|
@TableField(value = "parentId")
|
|
30
31
|
private Integer parentId;
/** 祖级列表 */
|
|
32
|
@TableField(value = "ancestors")
|
|
33
34
|
private String ancestors;
/** 部门编码 */
|
|
35
|
@TableField(value = "code")
|
|
36
37
38
39
40
41
42
|
private String code;
public static long getSerialVersionUID() {
return serialVersionUID;
}
/** 部门名称 */
|
|
43
|
@TableField(value = "deptName")
|
|
44
45
|
private String deptName;
/** 显示顺序 */
|
|
46
|
@TableField(value = "orderNum")
|
|
47
48
|
private String orderNum;
/** 负责人 */
|
|
49
|
@TableField(value = "leader")
|
|
50
51
|
private String leader;
/** 联系电话 */
|
|
52
|
@TableField(value = "phone")
|
|
53
54
|
private String phone;
/** 邮箱 */
|
|
55
|
@TableField(value = "email")
|
|
56
57
|
private String email;
/** 启用状态 */
|
|
58
|
@TableField(value = "enable")
|
|
59
60
61
62
63
64
|
private Boolean enable;
/** 父部门名称 */
private String parentName;
/** 搜索值 */
private String searchValue;
/** 创建者 */
|
|
65
|
@TableField(value = "createBy")
|
|
66
|
private String createBy;
|
|
67
|
|
|
68
69
|
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
70
|
@TableField(value = "createTime")
|
|
71
|
private Date createTime;
|
|
72
|
|
|
73
|
/** 更新者 */
|
|
74
|
@TableField(value = "updateBy")
|
|
75
|
private String updateBy;
|
|
76
|
|
|
77
78
|
/** 更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
79
|
@TableField(value = "updateTime")
|
|
80
|
private Date updateTime;
|
|
81
|
|
|
82
|
/** 备注 */
|
|
83
|
@TableField(value = "remark")
|
|
84
85
86
87
88
89
90
91
92
93
94
95
96
|
private String remark;
/** 请求参数 */
private Map<String, Object> params;
@Override
public String toString()
{
return "Dept [id=" + id + ", parentId=" + parentId + ", ancestors=" + ancestors + ", deptName="
+ deptName + ", orderNum=" + orderNum + ", leader=" + leader + ", phone=" + phone + ", email=" + email
+ ", enable=" + enable + ", parentName=" + parentName + "]";
}
}
|