package fcb.project.manager.base.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 *
 * </p>
 *
 * @author abner
 * @since 2021-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TmEstate对象", description="")
public class TmEstate implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一ID")
    private String id;

    @ApiModelProperty(value = "楼盘名称")
    @NotBlank(message = "楼盘名称不能为空")
    private String estateName;

    @ApiModelProperty(value = "所属公司ID")
    private String belongCompanyId;

    @ApiModelProperty(value = "所属公司名称")
    private String belongCompanyName;

    @ApiModelProperty(value = "创建人ID")
    private String createById;

    @ApiModelProperty(value = "创建人名称")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最新更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除：0->未删除; 1->已删除")
    @TableLogic
    @TableField(value = "isDelete" , fill = FieldFill.INSERT)
    private Integer isDelete;

    @ApiModelProperty(value = "房车宝楼盘ID")
    private String fcbEstateId;

    @ApiModelProperty(value = "交房时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime earliestHandOver;

    @ApiModelProperty(value = "最新开盘时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime onSaleTime;

    @ApiModelProperty(value = "楼盘经度")
    private BigDecimal estateLongitude;

    @ApiModelProperty(value = "楼盘纬度")
    private BigDecimal estateLatitude;

    @ApiModelProperty(value = "楼盘简介")
    private String estateDesc;


}
