yz
2021-03-01 4c136bc8d4c7d16a7918a06bb4bda5f34a54ba5d
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
package cc.mrbird.febs.common.core.entity.system;
 
import cc.mrbird.febs.common.core.annotation.FieldInfo;
import cc.mrbird.febs.common.core.converter.TimeConverter;
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.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
 
/**
 * @author MrBird
 */
@Data
@TableName("t_dept")
@Excel("部门信息表")
public class Dept implements Serializable {
 
    public static final Long TOP_DEPT_ID = 0L;
    private static final long serialVersionUID = -7790334862410409053L;
    @TableId(value = "DEPT_ID")
    private Long deptId;
 
    @TableField(value = "PARENT_ID")
    private Long parentId;
 
    @NotBlank(message = "{required}")
    @Size(max = 20, message = "{noMoreThan}")
    @ExcelField(value = "部门名称")
    private String deptName;
 
    @TableField(value = "ORDER_NUM")
    private Integer orderNum;
 
    @TableField(value = "CREATE_TIME")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    private Date createTime;
 
    @TableField(value = "MODIFY_TIME")
    @ExcelField(value = "修改时间", writeConverter = TimeConverter.class)
    private Date modifyTime;
 
    @FieldInfo(name = "delFlag", type = "bit", explain = "记录删除标志。0-未删除 1-已删除,默认0")
    @TableField("delFlag")
    private Integer delFlag = 0;
 
    @FieldInfo(name = "deptType", type = "varchar", explain = "部门类型")
    @TableField("deptType")
    private String deptType = "部门类型";
 
    @FieldInfo(name = "deptTypeName", type = "varchar", explain = "部门类型")
    @TableField(exist = false)
    private String deptTypeName;
 
    @FieldInfo(name = "deptFunction", type = "varchar", explain = "部门职能")
    @TableField("deptFunction")
    private String  deptFunction = "04";
 
    @FieldInfo(name = "deptFunctionName", type = "varchar", explain = "部门职能")
    @TableField(exist = false)
    private String  deptFunctionName;
 
    private transient String createTimeFrom;
 
    private transient String createTimeTo;
 
}