package com.fufan.mtsaas.modules.unsafeevent.baqsjrecordreport.model;

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.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 不安全事件填报表
 *
 * @author Liby
 * @date 2025-02-18
 */
@Data
@ApiModel(description = "不安全事件填报表")
@TableName("baqsj_record_report")
public class BaqsjRecordReport implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @ApiModelProperty(value = "事件明细ID")
    private Long id;
    @ApiModelProperty(value = "事件记录ID")
    private Long eventId;
    @ApiModelProperty(value = "上报时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date reportTime;
    @ApiModelProperty(value = "上报人")
    private String reportBy;
    @ApiModelProperty(value = "部门ID")
    private Long reportDeptId;
    @ApiModelProperty(value = "事件发生日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date eventTime;
    @ApiModelProperty(value = "院区")
    private String eventDivision;
    @ApiModelProperty(value = "地点")
    private String eventLocale;
    @ApiModelProperty(value = "事件经过")
    private String eventProcedure;
    @ApiModelProperty(value = "患者目前情况:0-无伤害,1-表皮损伤、扭伤等,2-器官，功能受损，不造成永久伤害,3-死亡,4-目前难以判断")
    private Integer patientStatus;
    @ApiModelProperty(value = "手机号")
    private String mobileNo;
    @ApiModelProperty(value = "工号")
    private String empNo;
    @ApiModelProperty(value = "岗位ID")
    private Long positionId;
    @ApiModelProperty(value = "第几次受伤")
    private Integer hurtTime;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "创建人")
    private String createBy;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "更新人")
    private String updateBy;

}
