package com.usky.ems.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 建筑信息（base_build），字段与表结构一致
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("base_build")
public class BaseBuild implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("build_num")
    private String buildNum;
    @TableField("build_name")
    private String buildName;
    private String address;
    @TableField("model_address")
    private String modelAddress;
    @TableField("above_floor")
    private Integer aboveFloor;
    @TableField("under_floor")
    private Integer underFloor;
    @TableField("build_area")
    private Double buildArea;
    @TableField("cover_area")
    private Double coverArea;
    @TableField("fire_rating")
    private Integer fireRating;
    @TableField("use_character")
    private Integer useCharacter;
    @TableField("build_structure")
    private Integer buildStructure;
    @TableField("build_high")
    private Double buildHigh;
    @TableField("high_type")
    private Integer highType;
    @TableField("complete_year")
    private LocalDate completeYear;
    @TableField("safe_person")
    private String safePerson;
    @TableField("manage_person")
    private String managePerson;
    @TableField("fire_risk")
    private Integer fireRisk;
    @TableField("fire_control_room")
    private String fireControlRoom;
    @TableField("build_inside")
    private String buildInside;
    @TableField("build_plan")
    private String buildPlan;
    @TableField("facility_id")
    private Integer facilityId;
    @TableField("bim_url")
    private String bimUrl;
    @TableField("contact_phone")
    private String contactPhone;
    @TableField("build_desc")
    private String buildDesc;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("update_by")
    private String updateBy;
    @TableField("create_by")
    private String createBy;
    @TableField("delete_flag")
    private Integer deleteFlag;
    @TableField("under_space")
    private Double underSpace;
    /** 防火涂层：0 无、1 有 */
    @TableField("fireproof_coat")
    private Integer fireproofCoat;
    @TableField("dept_id")
    private Integer deptId;
    @TableField("tenant_id")
    private Integer tenantId;
    private String longitude;
    private String latitude;
    @TableField("unit_count")
    private Integer unitCount;
}
