package com.aegis.emergency.plan.domain;

import com.aegis.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 预案审批记录实体类 plan_approval
 *
 * @author
 */
@Getter
@Setter
@ToString(callSuper = true)
@TableName("plan_approval")
public class PlanApproval extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 审批记录ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 预案ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;

    /** 审批人ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long approverId;

    /** 审批人姓名 */
    private String approverName;

    /** 审批状态：approved/rejected */
    private String approvalStatus;

    /** 审批意见 */
    private String approvalComment;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;

    /** 审批顺序（多级审批使用） */
    private Integer approvalOrder;

    /** 删除标志 */
    private String delFlag;
}