package com.zksy.dispatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 应急预案审批
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dis_plan_approval", schema = "app_user")
public class DisPlanApproval {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("预案ID")
    private Long planId;

    @ApiModelProperty("预案名称")
    private String planName;

    @ApiModelProperty("预案类型")
    private String planType;

    @ApiModelProperty("预案级别")
    private String planLevel;

    @ApiModelProperty("版本号")
    private String version;

    @ApiModelProperty("审批人（多人逗号分隔）")
    private String reviewers;

    @ApiModelProperty("审批记录")
    private String auditRecord;

    @ApiModelProperty("状态：编辑中/审批中/终审中/已发布/待修正")
    private String status;

    @ApiModelProperty("提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime submitTime;

    @ApiModelProperty("审批完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime approveTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableLogic(value = "0", delval = "2")
    @ApiModelProperty("删除标志（0=正常 2=删除）")
    private String delFlag;
}
