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 javax.validation.constraints.NotNull;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2025-11-28 10:32:09
 */
@Data
@TableName("fire_check_list")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class FireCheckListDO extends BaseDO {
    //业务主键id
    @ApiModelProperty(value = "业务主键id")
    private String fireCheckId;
    //企业id
    @ApiModelProperty(value = "企业id")
    private Long corpinfoId;
    //检查表名字
    @ApiModelProperty(value = "检查表名字")
    private String fireCheckName;
    //检查表类型
    @ApiModelProperty(value = "检查表类型")
    private String fireCheckType;
    //检查表类型名称
    @ApiModelProperty(value = "检查表类型名称")
    private String fireCheckTypeName;

    //禁用1启用0
    @ApiModelProperty(value = "禁用1启用0")
    private Integer state;

    @ApiModelProperty(value = "检查照片上传方式（1相机照相，2相册获取）", name = "photoUploadMethod", required = true)
    @NotNull(message = "检查照片上传方式不能为空")
    private Integer photoUploadMethod;

    //岗位
    @ApiModelProperty(value = "岗位名称")
    @TableField(exist = false)
    private String postName;
    //部门名称
    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String departmentName;
    @ApiModelProperty(value = "部门id")
    @TableField(exist = false)
    private Long departmentId;
    //用户名称
    @ApiModelProperty(value = "用户名称")
    @TableField(exist = false)
    private String userName;

    //检查次数
    @ApiModelProperty(value = "检查次数")
    @TableField(exist = false)
    private Long checkCount;

    @ApiModelProperty(value = "周期内检查次数")
    @TableField(exist = false)
    private String checkCycleCount;

    @ApiModelProperty(value = "点位数")
    @TableField(exist = false)
    private Long firePointCount;

    @ApiModelProperty(value = "港区")
    @TableField(exist = false)
    private Integer portArea;

    public FireCheckListDO(String fireCheckId) {
        this.fireCheckId = fireCheckId;
    }

}

