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.LocalDate;
import java.time.LocalDateTime;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2025-11-26 10:12:34
 */
@Data
@TableName("fire_device")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class FireDeviceDO extends BaseDO {
    //业务主键id
    @ApiModelProperty(value = "业务主键id")
    private String fireDeviceId;
    //企业id
    @ApiModelProperty(value = "企业id")
    private Long corpinfoId;
    //消防区域id
    @ApiModelProperty(value = "消防区域id")
    private String fireRegionId;
    //消防点位id
    @ApiModelProperty(value = "消防点位id")
    private String firePointId;
    //部门id
    @ApiModelProperty(value = "部门id")
    @TableField(exist = false)
    private Long departmentId;
    //消防器材类型
    @ApiModelProperty(value = "消防器材类型")
    private String fireDeviceType;
    //消防器材类型名称
    @ApiModelProperty(value = "消防器材类型名称")
    private String fireDeviceTypeName;
    //器材编号
    @ApiModelProperty(value = "器材编号")
    private String fireDeviceCode;
    //有效期开始时间
    @ApiModelProperty(value = "有效期开始时间")
    private LocalDate validityStartTime;
    //有效期结束时间
    @ApiModelProperty(value = "有效期结束时间")
    private LocalDate validityEndTime;
    //存放地点
    @ApiModelProperty(value = "存放地点")
    private String storageLocation;

    //消防区域名称
    @ApiModelProperty(value = "消防区域名称")
    @TableField(exist = false)
    private String fireRegionName;
    //消防区域编码
    @ApiModelProperty(value = "消防区域编码")
    @TableField(exist = false)
    private String fireRegionCode;
    //消防点位编码
    @ApiModelProperty(value = "消防点位编码")
    @TableField(exist = false)
    private String firePointCode;
    @ApiModelProperty(value = "消防点位名称")
    @TableField(exist = false)
    private String firePointName;
    //部门名称
    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String departmentName;
    //负责人
    @ApiModelProperty(value = "负责人")
    @TableField(exist = false)
    private String userName;
    @ApiModelProperty(value = "负责人岗位")
    @TableField(exist = false)
    private String userPostName;
    @ApiModelProperty(value = "企业名称")
    @TableField(exist = false)
    private String corpName;
    @ApiModelProperty(value = "经度")
    @TableField(exist = false)
    private String longitude;
    @ApiModelProperty(value = "纬度")
    @TableField(exist = false)
    private String latitude;


    public FireDeviceDO(String fireDeviceId) {
        this.fireDeviceId = fireDeviceId;
    }

}

