package com.artfess.rescue.event.model;

import com.baomidou.mybatisplus.annotation.*;
import com.artfess.base.entity.BaseModel;

import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 事件上报
 *
 * @company 阿特菲斯信息技术有限公司
 * @author 系统管理员
 * @since 2024-08-05
 */
@ApiModel(value="BizEventUpload对象", description="事件上报")
@Data
@TableName("biz_event_upload")
public class BizEventUpload extends BaseModel<BizEventUpload> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键_ID")
    @TableId(value = "ID_", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "事件上报部门ID")
    @TableField("UPLOAD_TEAM_ID_")
    private String uploadTeamId;

    @ApiModelProperty(value = "事件上报部门FULLID")
    @TableField("UPLOAD_TEAM_FULL_ID_")
    private String uploadTeamFullId;

    @ApiModelProperty(value = "事件上报部门名称")
    @TableField("UPLOAD_TEAM_NAME_")
    private String uploadTeamName;

    @ApiModelProperty(value = "事件上报人员ID")
    @TableField("UPLOAD_USER_ID_")
    private String uploadUserId;

    @ApiModelProperty(value = "事件上报人员姓名")
    @TableField("UPLOAD_USER_NAME_")
    private String uploadUserName;

    @ApiModelProperty(value = "事件上报时间")
    @TableField("UPLOAD_TIME_")
    private LocalDateTime uploadTime;

    @ApiModelProperty(value = "事件发生时间")
    @TableField("EVENT_TIME_")
    private LocalDateTime eventTime;

    @NotNull(message = "报案电话不能为空")
    @ApiModelProperty(value = "事件报案电话")
    @TableField("EVENT_TEL_")
    private String eventTel;

    @ApiModelProperty(value = "事件类型【字典】")
    @TableField("EVENT_TYPE_")
    private String eventType;

    @ApiModelProperty(value = "事件来源【字典】")
    @TableField("EVENT_SRC_")
    private String eventSrc;

    @ApiModelProperty(value = "巡查ID  （来源是巡检巡查的时候）")
    @TableField("INSPECT_ID_")
    private String inspectId;

    @ApiModelProperty(value = "所属路段(关联路段表ID)")
    @TableField("ROAD_ID_")
    private String roadId;

    @ApiModelProperty(value = "所属路段NAME")
    @TableField("ROAD_NAME_")
    private String roadName;

    @ApiModelProperty(value = "所属路段编码，")
    @TableField("ROAD_CODE_")
    private String roadCode;

    @ApiModelProperty(value = "方向")
    @TableField("DIRECTION_")
    private String direction;

    @ApiModelProperty(value = "事件开始点位桩号全值")
    @TableField("PEG_S_VAL_")
    private String pegSVal;

    @ApiModelProperty(value = "事件结束点位桩号全值")
    @TableField("PEG_E_VAL_")
    private String pegEVal;

    @ApiModelProperty(value = "经度")
    @TableField("LNG_")
    private String lng;

    @ApiModelProperty(value = "纬度")
    @TableField("LAT_")
    private String lat;

    @ApiModelProperty(value = "开始的站ID")
    @TableField("START_PATROL_ID_")
    private String startPatrolId;

    @ApiModelProperty(value = "开始的站NAME")
    @TableField("START_PATROL_NAME_")
    private String startPatrolName;

    @ApiModelProperty(value = "结束的站ID")
    @TableField("END_PATROL_ID_")
    private String endPatrolId;

    @ApiModelProperty(value = "结束的站NAME")
    @TableField("END_PATROL_NAME_")
    private String endPatrolName;

    @ApiModelProperty(value = "事件等级（1：1级，2：2级，3：3级，4：4级）")
    @TableField("EVENT_LEVEL_")
    private Integer eventLevel;

    @ApiModelProperty(value = "滞留人员数量")
    @TableField("HOLDUP_USER_NUM_")
    private Integer holdupUserNum;

    @ApiModelProperty(value = "受伤人员数量")
    @TableField("HURT_USER_NUM_")
    private Integer hurtUserNum;

    @ApiModelProperty(value = "死亡人员数量")
    @TableField("DEAD_USER_NUM_")
    private Integer deadUserNum;

    @ApiModelProperty(value = "损坏车辆数量")
    @TableField("BROKEN_CAR_NUM_")
    private Integer brokenCarNum;

    @ApiModelProperty(value = "滞留车辆数量")
    @TableField("HOLDUP_CAR_NUM_")
    private Integer holdupCarNum;

    @ApiModelProperty(value = "拥堵里程")
    @TableField("BLOCK_LENGTH_")
    private Double blockLength;

    @ApiModelProperty(value = "路产损失")
    @TableField("LOSS_")
    private Double loss;

    @ApiModelProperty(value = "肇事方")
    @TableField("CAUSE_")
    private String cause;

    @ApiModelProperty(value = "肇事车辆")
    @TableField("CAUSE_CAR_")
    private String causeCar;

    @ApiModelProperty(value = "所属执法支队及大队")
    @TableField("TRAFFIC_TEAM_")
    private String trafficTeam;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO_")
    private String memo;

    @ApiModelProperty(value = "状态（0：未上报，1：已上报，2：已接收）")
    @TableField("STATUS_")
    private Integer status;

    @ApiModelProperty(value = "接收人员id")
    @TableField("RECEIVE_USER_ID_")
    private String receiveUserId;

    @ApiModelProperty(value = "接收人员姓名")
    @TableField("RECEIVE_USER_NAME_")
    private String receiveUserName;

    @ApiModelProperty(value = "接收人员部门ID")
    @TableField("RECEIVE_ORG_ID_")
    private String receiveOrgId;

    @ApiModelProperty(value = "接收人员部门名称")
    @TableField("RECEIVE_ORG_NAME_")
    private String receiveOrgName;

    @ApiModelProperty(value = "接收人员部门FULLID")
    @TableField("RECEIVE_ORG_FULL_ID_")
    private String receiveOrgFullId;

    @ApiModelProperty(value = "接收时间")
    @TableField("RECEIVE_TIME_")
    private LocalDateTime receiveTime;

    @ApiModelProperty(value = "最后更新时间戳")
    @TableField(updateStrategy= FieldStrategy.NOT_NULL,value="LAST_TIME_", fill= FieldFill.INSERT_UPDATE, select=false)
    private Long lastTime;

    @ApiModelProperty(value = "是否已删，1已删除，0未删除")
    @TableField("IS_DELE_")
    @TableLogic
    private String isDele="0";

    @ApiModelProperty(value = "版本号")
    @TableField("VERSION_")
    private Long version;

    @ApiModelProperty(value = "租户ID")
    @TableField("TENANT_ID_")
    private String tenantId;
}
