package com.chinaweal.aiccs.aiccs.market.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.chinaweal.youfool.framework.springboot.mybatis.plus.SuperEntity;
import com.chinaweal.youfool.framework.springboot.json.LocalDateTimeStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import static com.chinaweal.youfool.framework.springboot.util.ConstantsUtil.DB_CREATE_TIME;

/**
 * <p>
 * 企业主体地址更新审计表
 * </p>
 *
 * @author chinaweal
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("ent_address_change_log")
@ApiModel(value="EbaseinfoUpdateAudit对象", description="企业主体地址更新审计表")
public class EntAddressChangeLog extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 企业主键
     */
    @ApiModelProperty(value = "企业主键")
    @TableField("pripid")
    private String pripid;

    /**
     * 旧地址
     */
    @ApiModelProperty(value = "旧地址")
    @TableField("beforeAddress")
    private String beforeAddress;

    /**
     * 新地址
     */
    @ApiModelProperty(value = "新地址")
    @TableField("afterAddress")
    private String afterAddress;

    /**
     * 变更时间
     */
    @ApiModelProperty(value = "变更时间")
    @TableField("changeDate")
    private LocalDateTime changeDate;

    /**
     * 状态 0-未执行 1-已执行
     */
    @ApiModelProperty(value = "状态 0-未执行 1-已执行")
    @TableField("status")
    private String status;

    /**
     * 认领时间
     */
    @ApiModelProperty(value = "认领时间")
    @TableField("assignTime")
    private LocalDateTime assignTime;

}
