package cn.ezhizao.project.business.workflow.domain;

import cn.ezhizao.framework.web.domain.BaseEntity;
import cn.ezhizao.project.system.domain.SysFileStorage;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class BizWorkFlowContent extends BaseEntity {
    @ApiModelProperty("主表名称")
    private String masterTableName;
    @ApiModelProperty("主表外键")
    private Long masterId;
    @ApiModelProperty("流程外键")
    private Long workFlowId;
    @ApiModelProperty("流程")
    @TableField(exist = false)
    private BizWorkFlow workFlow;
    @ApiModelProperty("结果 1成功 2暂停 3失败")
    private Integer result;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("文件")
    @TableField(exist = false)
    private List<SysFileStorage> files;

    @TableField(exist = false)
    private String verifierName;
    @ApiModelProperty("确认时间")
    private Timestamp actuallyDate;

    @TableField(value="tenant_id",fill= FieldFill.INSERT)
    @ApiModelProperty("账套外键")
    private Long tenantId;

    @TableField(exist = false)
    private String formName;
}
