/*
 *      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 com.sptg.estate.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2020-10-31
 */
@Setter
@Getter
@TableName(value = "estate_building")
public class Building {


	/**
	 * 主键
	 */
	@TableId(value = "l_id",type = IdType.AUTO)
	private Long id;

	@TableField(value = "l_old_id")
	private Long oldId;
	@TableField(value = "s_name")
	private String name;

	@TableField(value = "i_unit_number")
	private Integer unitNumber;

	@TableField(value = "i_room_number")
	private Integer roomNumber;

	@TableField(value = "i_person_number")
	private Integer personNumber;

	@TableField(value = "l_residential_id")
	private Long residentialId;

	@TableField(value = "l_residential_old_id")
	private Long residentialOldId;

	@TableField(value = "s_residential_name")
	private String residentialName;

	@TableField(value = "i_floor_number")
	private Integer floorNumber;

	/**
	 * 存储位置
	 */
	@TableField(value = "s_org_position")
	private String orgPosition;

	/**
	 * 物业路径
	 */
	@TableField(value = "s_estate_position")
	private String estatePosition;


	/**
	 * 创建人Id
	 */
	@TableField(value = "l_create_user")
	private Long createAccountId;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@TableField(value = "d_create_time")
	private Date createDate;


	/**
			* 删除标记：{ -1：已删除，0：正常 }
     */
	@TableField(value = "i_status")
	private Integer status;

	/**
	 * 负责人姓名
	 */
	@TableField(value = "s_person_name")
	private String personName;

	/**
	 * 负责人手机号码
	 */
	@TableField(value = "s_person_tel")
	private String personTel;

}
