package com.codvision.basic.entity;

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

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

/**
 * @author KX
 */
@Data
@ApiModel
@TableName("tbl_address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty("单元索引")
    private String unitSlot;

    @ApiModelProperty("楼层索引")
    private String floorSlot;

    @ApiModelProperty("标准地址编码")
    private String standardAddressCode;

    @ApiModelProperty("房屋所在区域-字典(HOUSE_REGION)")
    private String houseRegion;

    @ApiModelProperty("房间索引")
    private String roomSlot;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("区县")
    private String county;

    @ApiModelProperty("楼幢编码")
    private String buildingCode;

    @ApiModelProperty("房屋性质-字典(HOUSE_NATURE)")
    private String houseNature;

    @ApiModelProperty("房屋用途-字典(HOUSE_USE)")
    private String houseUse;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("组织id")
    private Integer oid;

    @ApiModelProperty("网格编码")
    private String gridCode;

    @ApiModelProperty("建筑物(如：富邦星座商业楼)")
    private String building;

    @ApiModelProperty("是否多种地址0-否;1-是")
    private Integer flagMulti;

    @ApiModelProperty("地址全称")
    private String sourceAddress;

    @ApiModelProperty("不动产登记情况-字典(REGISTER_SITUATION)")
    private String registerSituation;

    @ApiModelProperty("房屋类型-字典(HOUSE_TYPE)")
    private String houseType;

    @ApiModelProperty("自然村")
    private String village;

    @ApiModelProperty("楼层")
    private String floor;

    @ApiModelProperty("房屋层数分类-字典(HOUSE_FLOOR_CLASS)")
    private String houseFloorClass;

    @ApiModelProperty("纬度")
    private String lat;

    @ApiModelProperty("自然组")
    private String naturalGroup;

    @ApiModelProperty("小区/园区")
    private String park;

    @ApiModelProperty("地址编码")
    private String addressCode;

    @TableLogic
    @ApiModelProperty("删除标记,1-已删除,0:正常")
    private Integer delFlag;

    @ApiModelProperty("经度")
    private String lng;

    @ApiModelProperty("镇街")
    private String town;

    @ApiModelProperty("地址类型:ADDRESS_TYPE,1-楼幢;0-户室;4-小区/园区")
    private String addressType;

    @ApiModelProperty("社区")
    private String community;

    @ApiModelProperty("房屋使用情况-字典(HOUSE_USE_SITUATION)")
    private String houseUseSituation;

    @ApiModelProperty("房屋临时管理属性-字典(HOUSE_TEMPORARY_MANAGE)")
    private String houseTemporaryManage;

    @ApiModelProperty("房间")
    private String room;

    @ApiModelProperty("数据来源-字典(ADDRESS_DATA_SOURCE)")
    private String dataSource;

    @ApiModelProperty("单元")
    private String unit;

    @ApiModelProperty("房屋管理方式-字典(HOUSE_MANAGE_STYLE)")
    private String houseManageStyle;

    @ApiModelProperty("网格")
    private String grid;

    @ApiModelProperty("房屋危险性鉴定等级-字典(HOUSE_PERIL_GRADE)")
    private String housePerilGrade;

    @ApiModelProperty("地址标签(重点场所用途)")
    private String addressTags;

    @ApiModelProperty("楼幢号")
    private String buildingNumber;

    @ApiModelProperty("小区/园区、楼幢区域信息")
    private String wkt;

    @ApiModelProperty("门牌号")
    private String houseNumber;

    @ApiModelProperty("街路巷")
    private String street;

    @ApiModelProperty("街路号")
    private String streetNumber;

    @ApiModelProperty("小区园区编码(15位网格编码+2位顺序码+1位校验码)")
    private String parkCode;

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

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