package fcb.project.manager.base.entity;

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;

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

    private static final long serialVersionUID=1L;

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

    @ApiModelProperty(value = "封面照片url")
    private String coverImagUrl;

    @ApiModelProperty(value = "房源标题")
    private String houseTitle;

    @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->待集团审核;2->已审核;-1->未通过;3->待地区审核")
    private Integer status;

    @ApiModelProperty(value = "审核记录ID")
    private String auditId;

    @ApiModelProperty(value = "审核人ID")
    private String auditorId;


    @ApiModelProperty(value = "审核人名称")
    private String auditorName;

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

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

    @ApiModelProperty(value = "所属楼盘ID")
    private String estateId;

    @ApiModelProperty(value = "所属楼盘名称")
    private String estateName;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "是否上线: 1->上线; 0->下线")
    private Integer online;


    @ApiModelProperty(value = "房源戶型外網场景链接")
    private String vrLink;

    @ApiModelProperty(value = "二维码分享简介")
    private String shareDesc;

    @ApiModelProperty(value = "房源信息[房车宝提供]")
    private String houseInfo;

    @ApiModelProperty(value = "戶型场景码")
    private String sceneNum;

    @ApiModelProperty(value = "房源ID")
    private String fcbHouseId;


    @ApiModelProperty(value = "房源户型图链接")
    private String houseTpeImages;


    @ApiModelProperty(value = "建筑面积")
    private String houseArea;

    @ApiModelProperty(value = "朝向")
    private String houseOrientation;


    @ApiModelProperty(value = "园林景观")
    private String estatePanorama;

    @ApiModelProperty(value = "楼盘全景")
    private String landscape;

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

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

    @ApiModelProperty(value = "是否展示: 1->展示; 0->不展示")
    private String isShow;


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

    @ApiModelProperty(value = "房源戶型内网场景链接")
    private String innerVrLink;

    @ApiModelProperty(value = "当前房源的审核记录条数-仅仅用于返回给前端用")
    private Long countNum;

    @ApiModelProperty(value = "分享二维码url")
    private String qrCode;

    @ApiModelProperty(value = "用户在编辑后台编辑的模型的路径")
    private String vrPath;

    @TableField(exist = false)
    @ApiModelProperty(value = "具体审核过程中的状态,0->待审核;1->已审核;-1->不通过;2->拍摄审核")
    private Integer auditStatus;


    @TableField(exist = false)
    @ApiModelProperty(value = "观景图数量")
    private Object garden;

    @TableField(exist = false)
    @ApiModelProperty(value = "样板间数量")
    private Object house;

    @TableField(exist = false)
    @ApiModelProperty(value = "航拍数量")
    private Object building;

    @TableField(exist = false)
    @ApiModelProperty(value = "销售处数量")
    private Object sales;

    @TableField(exist = false)
    @ApiModelProperty(value = "讲房点位数量")
    private Object points;

}
