package com.unis.crk.common.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据流程节点轨迹记录表
 * </p>
 *
 * @author TangSong
 * @since 2021-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Bizflowtrail对象", description="数据流程节点轨迹记录表")
public class Bizflowtrail implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "节点轨迹ID")
    @TableId(value = "TrailID", type = IdType.UUID)
    private String TrailID;

    @ApiModelProperty(value = "业务单据ID")
    @TableField("BillNo")
    private String BillNo;

    @ApiModelProperty(value = "单位ID")
    @TableField("UnitID")
    private String UnitID;

    @ApiModelProperty(value = "当前流程环节ID")
    @TableField("CurBizNodeID")
    private Integer CurBizNodeID;

    @ApiModelProperty(value = "下一业务环节ID")
    @TableField("NextBizNodeID")
    private Integer NextBizNodeID;

    @TableField("BizNodeId")
    private Integer BizNodeId;

    @ApiModelProperty(value = "节点操作顺序")
    @TableField("TrailOrder")
    private Integer TrailOrder;

    @ApiModelProperty(value = "创建时间")
    @TableField("BuildDate")
    private Date BuildDate;

    @ApiModelProperty(value = "条目创建人")
    @TableField("Builder")
    private String Builder;

    @TableField("ShowOrder")
    private Integer ShowOrder;

    private Integer status;

    @ApiModelProperty(value = "业务流程ID")
    @TableField("FlowID")
    private String FlowID;

    @ApiModelProperty(value = "是否已被锁定")
    @TableField("IsLocked")
    private Boolean IsLocked;

    @ApiModelProperty(value = "锁定本记录的用户")
    @TableField("LockedUser")
    private String LockedUser;

    @ApiModelProperty(value = "锁定开始时间")
    @TableField("LockedDate")
    private Date LockedDate;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "上传时间")
    @TableField(value = "UPDATE_TIME",strategy = FieldStrategy.IGNORED,update = "null",fill = FieldFill.UPDATE)
    private Date updateTime;


}
