package com.zksy.base.warning.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName(value = "warning_disposal", schema = "app_user")
@Api(value = "预警处置记录")
@Data
public class WarningDisposal implements Serializable {

    @TableId(value = "disposal_id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty("处置记录ID")
    private String disposalId;

    @TableField("warning_id")
    @ApiModelProperty("预警ID")
    private String warningId;

    @TableField("disposal_type")
    @ApiModelProperty("处置类型")
    private String disposalType;

    @TableField("old_level")
    @ApiModelProperty("原预警级别")
    private String oldLevel;

    @TableField("new_level")
    @ApiModelProperty("新预警级别")
    private String newLevel;

    @TableField("disposal_user")
    @ApiModelProperty("处置人")
    private String disposalUser;

    @TableField("disposal_content")
    @ApiModelProperty("处置内容/意见")
    private String disposalContent;

    @TableField("supervision_user")
    @ApiModelProperty("督办人员")
    private String supervisionUser;

    @TableField("supervision_content")
    @ApiModelProperty("督办意见")
    private String supervisionContent;

    @TableField("notification_type")
    @ApiModelProperty("通知方式")
    private String notificationType;

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

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
