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("tshwftask")
public class TSHwfTask extends Model<TSHwfTask> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "TASKID", type = IdType.ASSIGN_UUID)
    private String taskid;

    /**
     * 主键
     */
    @TableField("PROCESSID")
    private String processid;

    /**
     * 状态
     */
    @TableField("STATUS")
    private Integer status;

    /**
     * 完成时间
     */
    @TableField("COMPLETEDON")
    private LocalDateTime completedon;

    /**
     * 创建时间
     */
    @TableField("CREATEDON")
    private LocalDateTime createdon;

    /**
     * 签收者ID
     */
    @TableField("ACTUALOWNERID")
    private String actualownerid;

    /**
     * 创建者ID
     */
    @TableField("CREATEDBYID")
    private String createdbyid;

    /**
     * 版本标识
     */
    @TableField("OPTLOCK")
    private Integer optlock;

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

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


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

}
