package fcb.project.manager.base.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
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 java.io.Serializable;
import java.time.LocalDateTime;

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

    private static final long serialVersionUID=1L;

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

    @ApiModelProperty(value = "小区ID")
    private String gardenId;

    @ApiModelProperty(value = "小区名称")
    private String gardenName;

    @ApiModelProperty(value = "楼栋单元")
    private String buildingUnit;

    @ApiModelProperty(value = "房号")
    private String roomNumber;

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

    @ApiModelProperty(value = "套内面积")
    private String insideArea;

    @ApiModelProperty(value = "状态: 0 -> 草稿;1->待集团审核;2->已审核;-1->未通过;3->待地区审核")
    private String status;

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

    @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 = "维护人")
    private String maintenanceMan;

    @ApiModelProperty(value = "维护人Id")
    private String maintenanceManId;

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

    @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 = "房源戶型外網场景链接")
    private String vrLink;

}
