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

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

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class BizWorkFlow extends BaseEntity {
    @ApiModelProperty("人员类型 1-role 2-permission 3-employee")
    private Integer permissionType;
    @ApiModelProperty("角色外键")
    private Long roleId;
    @ApiModelProperty("角色")
    @TableField(exist = false)
    private String roleName;
    @ApiModelProperty("权限外键")
    private Long permissionId;
    @ApiModelProperty("权限名称")
    @TableField(exist = false)
    private String permissionCode;
    @ApiModelProperty("员工外键")
    private Long employeeId;
    @ApiModelProperty("员工姓名")
    @TableField(exist = false)
    private String employeeName;
    @ApiModelProperty("部门外键")
    private Long departmentId;
    @ApiModelProperty("部门名称")
    @TableField(exist = false)
    private String departmentName;
    @ApiModelProperty("审核名称")
    private String name;
    @ApiModelProperty("是否录入文件")
    private Integer hasFiles;

    @ApiModelProperty("是否确认时间")
    private Integer hasActuallyDate;

    @ApiModelProperty("流程排序")
    private Integer sort;
    @ApiModelProperty("对应表单")
    private String formName;

    @ApiModelProperty("部门外键")
    @TableField(exist = false)
    private String departmentIds;
    @ApiModelProperty("部门外键列表")
    @TableField(exist = false)
    private List<String> departmentIdList;

    @ApiModelProperty("详情")
    @TableField(exist = false)
    private BizWorkFlowContent content;

    @TableField(exist = false)
    private Long paymentId;

    @ApiModelProperty("账套外键")
    @TableField(value = "tenant_id")
    private Long customerMainAccountSetsId;
}
