/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.entity.inspection;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * @author codvision
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_inspection_record")
@ApiModel(description = "检查记录")
public class InspectionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "检查人员")
    private String creator;

    @ApiModelProperty(value = "检查位置纬度")
    private Double inspectLat;

    @ApiModelProperty(value = "检查位置经度")
    private Double inspectLng;

    @ApiModelProperty(value = "检查对象主键（身份证号、社会统一信用代码）")
    private String refCode;

    @ApiModelProperty(value = "所属任务id")
    private Integer taskId;

    @ApiModelProperty(value = "隐患数")
    private Integer issueNumber;

    @ApiModelProperty(value = "检查id")
    private Integer inspectionId;

    @ApiModelProperty(value = "检查人员id")
    private Integer creatorId;

    @ApiModelProperty(value = "1人员，2房屋，3企业")
    private String category;

    @ApiModelProperty(value = "检查情况1已复查已整改，0待复查")
    private String status;

    @ApiModelProperty(value = "检查对象名称")
    private String refName;
    private String source;
    private Integer rectifyDeadline;
    private String rectifyContent;
    private String rectifyFile;
    private Integer rectifyUserId;
    private String rectifyTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
