package com.chinaweal.aiccs.aiccs.business.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;

/**
 * <p>
 * 监管共用审批表
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tsauditing")
public class TSAuditing extends Model<TSAuditing> {

    private static final long serialVersionUID=1L;

    /**
     * 审批表编号
     */
    @TableId(value = "AUDITINGID", type = IdType.ASSIGN_UUID)
    private String auditingid;

    /**
     * 流程主键
     */
    @TableField("WORKFLOWID")
    private String workflowid;

    /**
     * 案件编号
     */
    @TableField("CASEID")
    private String caseid;

    /**
     * 审批类型
     */
    @TableField("AUDITINGTYPE")
    private String auditingtype;

    /**
     * 审批主题
     */
    @TableField("AUDITINGTITLE")
    private String auditingtitle;

    /**
     * 审批内容
     */
    @TableField("AUDITINGCONTENT")
    private String auditingcontent;

    /**
     * 承办人
     */
    @TableField("HANDLER")
    private String handler;

    /**
     * 承办机构
     */
    @TableField("HANDLEORG")
    private String handleorg;

    /**
     * 承办部门
     */
    @TableField("HANDLEDEPT")
    private String handledept;

    /**
     * 承办日期
     */
    @TableField("HANDLEDATE")
    private LocalDate handledate;

    /**
     * 承办机构编码
     */
    @TableField("HANDLEORGCODE")
    private String handleorgcode;

    /**
     * 是否同意
     */
    @TableField("ISAGREE")
    private String isagree;

    /**
     * 送审日期
     */
    @TableField("DELCHEDATE")
    private LocalDate delchedate;

    /**
     * 退卷日期
     */
    @TableField("WITHTOMEDATE")
    private LocalDate withtomedate;

    /**
     * 归档标志
     */
    @TableField("ARCHIVESFLAG")
    private String archivesflag;

    /**
     * 电子档案编号
     */
    @TableField("ARCHIVESNO")
    private String archivesno;

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

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


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

}
