“djh”
2024-12-04 d1549b8445c65a6775cf1ba093f5040ace0f87e7
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
package com.gkhy.huataiFourierSpecialGasMonitor.domain.account.entity;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
 
import javax.persistence.*;
import java.time.LocalDateTime;
 
/**
 * @email 1603559716@qq.com
 * @author: zf
 * @date: 2023/3/7
 * @time: 13:25
 */
@EntityListeners(AuditingEntityListener.class)
@Data
@Entity
@Table(name="sys_department")
public class SysDepartment {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 部门
     */
    private String depName;
    /**
     * 等级
     */
    private Byte level;
    /**
     * 父级id
     */
    private Long parentId;
    /**
     * 描述
     */
    private String info;
    /**
     * 删除标识 0未删除,2删除
     */
    private Byte deleteStatus;
    /**
     * 创建时间
     */
    @JsonFormat
    @CreatedDate
    @Column(name = "create_time",updatable = false)
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @JsonFormat
    @LastModifiedDate
    private LocalDateTime updateTime;
    /**
     * 创建人
     */
    private Long createByUserId;
    /**
     * 更新人
     */
    private Long updateByUserId;
 
}