package fcb.project.manager.base.entity;

import com.alibaba.fastjson.annotation.JSONField;
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-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TmAudit对象", description="审核表")
public class TmAuditLog implements Serializable {

    private static final long serialVersionUID=1L;

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

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

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

    @ApiModelProperty(value = "审核类型：0提审，1审核")
    private Integer auditType;

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

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

    @ApiModelProperty(value = "审核状态: 0->待审核;1->集团审核通过;-1->集团驳回;2->地区审核通过;->-4地区驳回")
    private Integer auditStatus;

    @ApiModelProperty(value = "审核备注")
    private String auditRemark;

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

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

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

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

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

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


}
