package com.zksy.dispatch.domain;

import com.baomidou.mybatisplus.annotation.*;
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_event_transfer", schema = "app_user")
public class DisEventTransfer {

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

    @ApiModelProperty("关联统一事件主表ID（dis_event.id）")
    private Long relEventId;

    @ApiModelProperty("关联核实ID")
    private Long verifyId;

    @ApiModelProperty("事件编号")
    private String eventNo;

    @ApiModelProperty("事件类别")
    private String category;

    @ApiModelProperty("事件级别")
    @TableField("\"level\"")
    private String level;

    @ApiModelProperty("摘要")
    private String summary;

    @ApiModelProperty("转接部门")
    private String transferDept;

    @ApiModelProperty("报送级别")
    private String reportLevel;

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

    @ApiModelProperty("转接备注")
    private String transferRemark;

    @ApiModelProperty("报送对象")
    private String reportTargets;

    @ApiModelProperty("附件路径（多个用,分隔）")
    private String attachPaths;

    @TableField(exist = false)
    @ApiModelProperty("关联接报编号（来自核实记录）")
    private String reportEventNo;

    @ApiModelProperty("状态（待转接/已转接/已报送）")
    private String status;

    @ApiModelProperty("操作人")
    private String operator;

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