/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.community.residential.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.models.auth.In;
import org.checkerframework.checker.units.qual.A;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 小区表，新建小区的时候，小区也要作为一个机构存入到机构表里面，机构的编号就使用当前小区的编号实体类
 *
 * @author BladeX
 * @since 2020-10-16
 */
@Data
@TableName("estate_residential")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Residential对象", description = "小区表，新建小区的时候，小区也要作为一个机构存入到机构表里面，机构的编号就使用当前小区的编号")
public class Residential extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private String tenantId;

	/**
	 * 旧平台id
	 */
	@ApiModelProperty(value = "旧平台id")
	private Long oldId;

	/**
	* 小区名字
	*/
		@ApiModelProperty(value = "小区名字")
		private String name;
	/**
	* 小区编号 (固定字母A+数字自增，物业内唯一)
	*/
		@ApiModelProperty(value = "小区编号 (固定字母A+数字自增，物业内唯一)")
		private String residentialNumber;
	/**
	* 根机构id
	*/
		@ApiModelProperty(value = "根机构id")
		private String rootOrgId;
	/**
	* 所属机构id
	*/
		@ApiModelProperty(value = "所属机构id")
		private String orgPid;
	/**
	* 所属机构名称
	*/
		@ApiModelProperty(value = "所属机构名称")
		private String orgPidName;
	/**
	* 存储位置（通过该字段快速查询，所有的子节点）
	*/
		@ApiModelProperty(value = "存储位置（通过该字段快速查询，所有的子节点）")
		private String orgPosition;
	/**
	* 所属物业id
	*/
		@ApiModelProperty(value = "所属物业id")
		private Long estatePid;
	/**
	* 所属物业名称
	*/
		@ApiModelProperty(value = "所属物业名称")
		private String estatePidName;
	/**
	* 物业路径
	*/
		@ApiModelProperty(value = "物业路径")
		private String estatePosition;
	/**
	* 省（id）
	*/
		@ApiModelProperty(value = "省（id）")
		private String regionProvince;
	/**
	* 市（id）
	*/
		@ApiModelProperty(value = "市（id）")
		private String regionCity;
	/**
	* 区/县（id）
	*/
		@ApiModelProperty(value = "区/县（id）")
		private String regionArea;
	/**
	* 地区（广东省广州市天河区）
	*/
		@ApiModelProperty(value = "地区（广东省广州市天河区）")
		private String region;
	/**
	* 详细地址
	*/
		@ApiModelProperty(value = "详细地址")
		private String address;
	/**
	* 单元总数
	*/
		@ApiModelProperty(value = "单元总数")
		private Integer totalUnitNumber;
	/**
	* 房间总数
	*/
		@ApiModelProperty(value = "房间总数")
		private Integer totalRoomNumber;
	/**
	* 住户总数
	*/
		@ApiModelProperty(value = "住户总数")
		private Integer totalUserNumber;
	/**
	 * 楼栋总数
	 */
	@ApiModelProperty(value = "楼栋总数")
	private Integer buildingNumber;
	/**
	* 已录单元数量
	*/
		@ApiModelProperty(value = "已录单元数量")
		private Integer unitNumber;
	/**
	* 已录房间数量
	*/
		@ApiModelProperty(value = "已录房间数量")
		private Integer roomNumber;
	/**
	* 已录住户数量
	*/
		@ApiModelProperty(value = "已录住户数量")
		private Integer userNumber;
	/**
	* 已录入人脸住户数
	*/
		@ApiModelProperty(value = "已录入人脸住户数")
		private Integer userFaceNumber;
	/**
	* 负责人姓名
	*/
		@ApiModelProperty(value = "负责人姓名")
		private String personName;
	/**
	* 负责人电话
	*/
		@ApiModelProperty(value = "负责人电话")
		private String personTel;
	/**
	* 备注
	*/
		@ApiModelProperty(value = "备注")
		private String remark;
	/**
	* 开启紧急疏散的时间(毫秒值)
	*/
		@ApiModelProperty(value = "开启紧急疏散的时间(毫秒值)")
		private Long openEvacuateTime;
	/**
	* 创建人账号ID
	*/
		@ApiModelProperty(value = "创建人账号ID")
		private Long createAccountId;
	/**
	* 创建者类型：{1：机构，3：物业}（和机构类型对应）
	*/
		@ApiModelProperty(value = "创建者类型：{1：机构，3：物业}（和机构类型对应）")
		private Integer creatorType;
	/**
	* 分配标记：{0：未分配，1：已分配}
	*/
		@ApiModelProperty(value = "分配标记：{0：未分配，1：已分配}")
		private Integer isAssign;

	/**
	 * 社区id
	 */
	@ApiModelProperty(value = "社区id")
	private Long agencyId;


	/**
	 * 经度
	 */
	@ApiModelProperty(value = "经度")
	private String longitude;

	/**
	 * 纬度
	 */
	@ApiModelProperty(value = "纬度")
	private String latitude;

	/**
	 * 物业联系电话
	 */
	@ApiModelProperty(value = "物业联系电话")
	private String estatePidPhone;

	/**
	 * 楼层数
	 */
	@ApiModelProperty(value = "楼层数")
	private Integer floorNumber;

	/**
	 * 图片
	 */
	@ApiModelProperty(value = "图片")
	private String pic;

	/**
	 * 边界路径
	 */
	@ApiModelProperty(value = "边界路径")
	private String boundaryPath;

	@ApiModelProperty("集约平台id")
	private String inhabitantId;

	@ApiModelProperty("集约平台区域id")
	private String areaInhabitantId;

	@ApiModelProperty(value = "第三方小区ID")
	private String thirdResidentialId;

}
