package com.zksy.dispatch.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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_step", schema = "app_user")
public class DisPlanApprovalStep {

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

    @ApiModelProperty("审批主表ID")
    private Long approvalId;

    @ApiModelProperty("环节序号")
    private Integer stepOrder;

    @ApiModelProperty("环节名称")
    private String title;

    @ApiModelProperty("审批人")
    private String approver;

    @ApiModelProperty("权限描述")
    private String permission;

    @ApiModelProperty("审批意见")
    private String opinion;

    @ApiModelProperty("审批结果")
    private String result;

    @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;
}
