package com.chinaweal.aiccs.aiccs.abnormal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
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;

/**
 * <p>
 * 监管文书文号信息
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tswrit")
public class TSWrit extends Model<TSWrit> {

    private static final long serialVersionUID=1L;

    /**
     * 文书编号ID
     */
    @TableId(value = "WRITSID", type = IdType.ASSIGN_UUID)
    private String writsid;

    /**
     * 业务号
     */
    @TableField("BIZSEQ")
    private String bizseq;

    /**
     * 主体ID
     */
    @TableField("PRIPID")
    private String pripid;

    /**
     * 文书号
     */
    @TableField("WRITSNO")
    private String writsno;

    /**
     * 文书名/文书描述
     */
    @TableField("WRITSNAME")
    private String writsname;

    /**
     * 文书类型
     */
    @TableField("WRITSTYPE")
    private String writstype;

    /**
     * 文书生成时间
     */
    @TableField("CREATETIME")
    private LocalDateTime createtime;

    /**
     * 文书相对路径
     */
    @TableField("PATH")
    private String path;

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

    /**
     * 地区代码
     */
    @TableField("AREA_CODE")
    private String areaCode;

    /**
     *  文书内容
     */
    @TableField("CONTENT")
    private String content;

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

}
