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

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 com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 线索信息
 * </p>
 *
 * @author Lee
 * @since 2021-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("clue")
public class Clue extends Model<Clue> {

    private static final long serialVersionUID=1L;

    /**
     * 线索id
     */
      @TableId("clueId")
    private String clueId;

    /**
     * 线索来源
     */
    @TableField("clueFrom")
    private String clueFrom;

    /**
     * 线索名称
     */
    @TableField("clueName")
    private String clueName;

    /**
     * 接收人
     */
    @TableField("acceptName")
    private String acceptName;

    /**
     * 接收时间
     */
    @TableField("acceptTime")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate acceptTime;

    /**
     * 转办函流号
     */
    @TableField("traLetterNo")
    private String traLetterNo;

    /**
     * 限期改正时间
     */
    @TableField("correctDeadLine")
    private String correctDeadLine;

    /**
     * 线索内容
     */
    @TableField("clueContent")
    private String clueContent;

    /**
     * 核查情况
     */
    private String situation;

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


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

}
