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 javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

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

    private static final long serialVersionUID=1L;

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

    @ApiModelProperty(value = "房车宝 - 小区id")
    private String gardenId;

    @ApiModelProperty(value = "房车宝 - 小区编码")
    private String number;

    @ApiModelProperty(value = "房车宝 - 小区名称")
    private String gardenName;

    @ApiModelProperty(value = "房车宝 - 片区/小区商圈")
    private String areaName;

    @ApiModelProperty(value = "房车宝 - 城市名称")
    private String cityName;

    @ApiModelProperty(value = "房车宝 - 建造年代")
    private String buildYear;

    @ApiModelProperty(value = "房车宝 - 物业类型")
    private String propertyTypeName;

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

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

    @ApiModelProperty(value = "更新人ID")
    private String updateById;

    @ApiModelProperty(value = "更新人名称")
    private String updateByName;

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

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

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

    @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 = "是否上线: 1->上线; 0->下线")
    private Integer online;

    // 只保存最新审核记录

    @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;


}
