package com.zcloud.fire.check.persistence.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjb.saas.framework.repository.basedo.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2025-12-12 11:10:58
 */
@Data
@TableName("fire_check_record")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class FireCheckRecordDO extends BaseDO {
    //业务主键id
    @ApiModelProperty(value = "业务主键id")
    private String fireRecordId;
    //企业id
    @ApiModelProperty(value = "企业id")
    private Long corpinfoId;
    //检查表id
    @ApiModelProperty(value = "检查表id")
    private String fireCheckId;
    //检查表名字
    @ApiModelProperty(value = "检查表名字")
    private String fireCheckName;
    //检查表类型
    @ApiModelProperty(value = "检查表类型")
    private String fireCheckType;
    //检查表类型名称
    @ApiModelProperty(value = "检查表类型名称")
    private String fireCheckTypeName;
    //检查时间
    @ApiModelProperty(value = "检查时间")
    private LocalDateTime checkTime;
    //是否完成,0否1是
    @ApiModelProperty(value = "是否完成,0否1是")
    private Integer finishedFlag;
    //检查周期开始时间
    @ApiModelProperty(value = "检查周期开始时间")
    private LocalDateTime periodStart;
    //检查周期结束时间
    @ApiModelProperty(value = "检查周期结束时间")
    private LocalDateTime periodEnd;
    //签字url
    @ApiModelProperty(value = "签字url")
    private String signUrl;

    @ApiModelProperty(value = "涉及点位数")
    @TableField(exist = false)
    private Integer checkRecordPointCount;
    @ApiModelProperty(value = "检查人list")
    @TableField(exist = false)
    private String userNameList;
    @ApiModelProperty(value = "部门名字")
    @TableField(exist = false)
    private String departmentName;

    @ApiModelProperty(value = "消防点位名称")
    @TableField(exist = false)
    private String firePointNameList;

    @ApiModelProperty(value = "消防区域名称")
    @TableField(exist = false)
    private String fireRegionNameList;

    public FireCheckRecordDO(String fireRecordId) {
        this.fireRecordId = fireRecordId;
    }

}

