package com.chinaweal.aiccs.aiccs.inspect.entity;

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-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tsworknobase")
public class TSWorkNoBase extends Model<TSWorkNoBase> {

    private static final long serialVersionUID=1L;

    /**
     * 文书类型ID
     */
      @TableId("BaseID")
    private String BaseID;

    /**
     * 当前流水号
     */
    @TableField("CURRENTNO")
    private Integer currentno;

    /**
     * 当前年份
     */
    @TableField("YEARS")
    private Integer years;

    /**
     * 文书号类型
     */
    @TableField("WORKNOTYPE")
    private String worknotype;

    /**
     * 文书类型描述
     */
    @TableField("TYPECOMMENT")
    private String typecomment;

    /**
     * 产生规则
     */
    @TableField("GENRULE")
    private String genrule;

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

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


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

}
