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