package com.gkhy.fourierSpecialGasMonitor.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;
|
|
}
|