package com.chinaweal.aiccs.aiccs.revoke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lee
 * @since 2021-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tshearingreport")
public class TsHearingReport extends Model<TsHearingReport> {

    private static final long serialVersionUID=1L;

    /**
     * 听证报告id
     */
      @TableId(value = "hearingReportId", type = IdType.ASSIGN_UUID)
    private String hearingReportId;

    /**
     * 业务号
     */
    private String bizseq;

    /**
     * 主体身份代码
     */
    private String pripid;

    /**
     * 送达回证文号
     */
    @TableField("arriveBackNo")
    private String arriveBackNo;

    /**
     * 送达文书名称
     */
    @TableField("arriveWritName")
    private String arriveWritName;

    /**
     * 受送达人
     */
    @TableField("arriveSigner")
    private String arriveSigner;

    /**
     * 送达时间
     */
    @TableField("arriveTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate arriveTime;

    /**
     * 送达地点
     */
    @TableField("arriveAt")
    private String arriveAt;

    /**
     * 送达方式 "1"邮寄 "2上门"
     */
    @TableField("arriveWay")
    private String arriveWay;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 最后更新时间
     */
    @TableField("laupTime")
    private LocalDateTime laupTime;


    @Override
    protected Serializable pkVal() {
        return this.hearingReportId;
    }

}
