..
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import cn.hutool.core.lang.Dict;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
*
|
||||
* 候选人实体
|
||||
* @author mldong
|
||||
* @date 2023/6/26
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
public class Candidate {
|
||||
// 用户ID
|
||||
private String userId;
|
||||
// 用户名
|
||||
private String userName;
|
||||
// 扩展属性
|
||||
private Dict ext = Dict.create();
|
||||
|
||||
/**
|
||||
* 重写equals,方便去重
|
||||
* @param obj
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof Candidate) {
|
||||
Candidate tmp = (Candidate) obj;
|
||||
if (ObjectUtil.equals(this.getUserId(),tmp.getUserId())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 重写hashCode,方便去重
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(userId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.nutz.dao.entity.annotation.Column;
|
||||
import org.nutz.dao.entity.annotation.Comment;
|
||||
import org.nutz.dao.entity.annotation.Id;
|
||||
import org.nutz.dao.entity.annotation.Table;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程实例抄送
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-12-05
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Table("wf_process_cc_instance")
|
||||
public class ProcessCcInstance extends BaseModel {
|
||||
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment("流程实例ID")
|
||||
@Column
|
||||
private Long processInstanceId;
|
||||
|
||||
@Comment("被抄送人ID")
|
||||
@Column
|
||||
private String actorId;
|
||||
|
||||
@Comment("抄送状态(1:已读;0:未读)")
|
||||
@Column
|
||||
private Integer state;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.nutz.dao.entity.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程定义
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-09-26
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Table("wf_process_define")
|
||||
@Comment("流程定义")
|
||||
public class ProcessDefine extends BaseModel {
|
||||
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment("唯一编码")
|
||||
@Column
|
||||
private String name;
|
||||
|
||||
@Comment("显示名称")
|
||||
@Column
|
||||
private String displayName;
|
||||
|
||||
@Comment("流程类型")
|
||||
@Column
|
||||
private String type;
|
||||
|
||||
@Comment("流程分类")
|
||||
@Column
|
||||
private String category;
|
||||
|
||||
@Comment("电脑端发起地址")
|
||||
@Column
|
||||
private String instanceUrl;
|
||||
|
||||
@Comment("手机端发起地址")
|
||||
@Column
|
||||
private String h5InstanceUrl;
|
||||
|
||||
@Comment("图标")
|
||||
@Column
|
||||
private String icon;
|
||||
|
||||
@Comment("流程是否可用(1可用;0不可用)")
|
||||
@Column
|
||||
private Integer state;
|
||||
|
||||
@Comment("流程模型定义")
|
||||
@Column
|
||||
@ColDefine(type = ColType.VARCHAR)
|
||||
private JSONObject content;
|
||||
|
||||
@Comment("版本")
|
||||
@Column
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.nutz.dao.entity.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程设计
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-10-12
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Table("wf_process_design")
|
||||
@Comment("流程设计")
|
||||
public class ProcessDesign extends BaseModel {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Comment("主键")
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment("唯一编码")
|
||||
@Column
|
||||
private String name;
|
||||
|
||||
@Comment("显示名称")
|
||||
@Column
|
||||
private String displayName;
|
||||
|
||||
@Comment("流程分类")
|
||||
@Column
|
||||
private String type;
|
||||
|
||||
@Comment("流程分类")
|
||||
@Column
|
||||
private String category;
|
||||
|
||||
@Comment("电脑端发起地址")
|
||||
@Column
|
||||
private String instanceUrl;
|
||||
|
||||
@Comment("手机端发起地址")
|
||||
@Column
|
||||
private String h5InstanceUrl;
|
||||
|
||||
@Comment("图标")
|
||||
@Column
|
||||
private String icon;
|
||||
|
||||
@Comment("是否已部署")
|
||||
@Column
|
||||
private Integer isDeployed;
|
||||
|
||||
@Comment("备注")
|
||||
@Column
|
||||
private String remark;
|
||||
|
||||
@Comment("流程定义")
|
||||
@Column
|
||||
@ColDefine(type = ColType.MYSQL_JSON)
|
||||
private JSONObject content;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.nutz.dao.entity.annotation.Column;
|
||||
import org.nutz.dao.entity.annotation.Comment;
|
||||
import org.nutz.dao.entity.annotation.Id;
|
||||
import org.nutz.dao.entity.annotation.Table;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程设计历史
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-09-26
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Table("wf_process_design_his")
|
||||
@Comment("流程设计历史")
|
||||
public class ProcessDesignHis extends BaseModel {
|
||||
|
||||
@Comment("主键")
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment("流程设计ID")
|
||||
@Column
|
||||
private Long processDesignId;
|
||||
|
||||
@Comment("流程模型定义")
|
||||
@Column
|
||||
private byte[] content;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.nutz.dao.entity.annotation.Column;
|
||||
import org.nutz.dao.entity.annotation.Comment;
|
||||
import org.nutz.dao.entity.annotation.Id;
|
||||
import org.nutz.dao.entity.annotation.Table;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程实例
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-09-26
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Table("wf_process_instance")
|
||||
@Comment("流程实例")
|
||||
public class ProcessInstance extends BaseModel {
|
||||
|
||||
@Comment( "主键")
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment( "父流程ID,子流程实例才有值")
|
||||
@Column
|
||||
private Long parentId;
|
||||
|
||||
@Comment( "流程定义ID")
|
||||
@Column
|
||||
private Long processDefineId;
|
||||
|
||||
@Comment( "流程实例状态(10:进行中;20:已完成;30:已撤回;40:强行中止;50:挂起;99:已废弃)")
|
||||
@Column
|
||||
private Integer state;
|
||||
|
||||
@Comment( "父流程依赖的节点名称")
|
||||
@Column
|
||||
private String parentNodeName;
|
||||
|
||||
@Comment( "业务编号")
|
||||
@Column
|
||||
private String businessNo;
|
||||
|
||||
@Comment( "流程发起人")
|
||||
@Column
|
||||
private String operator;
|
||||
|
||||
@Comment( "期望完成时间")
|
||||
@Column
|
||||
private Date expireTime;
|
||||
|
||||
@Comment( "附属变量json存储")
|
||||
@Column
|
||||
private String variable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.nutz.dao.entity.annotation.Column;
|
||||
import org.nutz.dao.entity.annotation.Comment;
|
||||
import org.nutz.dao.entity.annotation.Id;
|
||||
import org.nutz.dao.entity.annotation.Table;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程委托代理
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-12-06
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Table("wf_process_surrogate")
|
||||
@Comment("流程委托代理")
|
||||
public class ProcessSurrogate extends BaseModel {
|
||||
|
||||
@Comment( "主键")
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment( "流程名称")
|
||||
@Column
|
||||
private String processName;
|
||||
|
||||
@Comment( "授权人")
|
||||
@Column
|
||||
private String operator;
|
||||
|
||||
@Comment( "代理人")
|
||||
@Column
|
||||
private String surrogate;
|
||||
|
||||
@Comment( "授权开始时间")
|
||||
@Column
|
||||
private Date startTime;
|
||||
|
||||
@Comment( "授权结束时间")
|
||||
@Column
|
||||
private Date endTime;
|
||||
|
||||
@Comment( "是否启用")
|
||||
@Column
|
||||
private Integer enabled;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.nutz.dao.entity.annotation.Column;
|
||||
import org.nutz.dao.entity.annotation.Comment;
|
||||
import org.nutz.dao.entity.annotation.Id;
|
||||
import org.nutz.dao.entity.annotation.Table;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程任务
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-09-26
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Table("wf_process_task")
|
||||
@Comment("流程任务")
|
||||
public class ProcessTask extends BaseModel {
|
||||
|
||||
|
||||
@Comment("主键")
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment("流程实例ID")
|
||||
@Column
|
||||
private Long processInstanceId;
|
||||
|
||||
@Comment("任务名称编码")
|
||||
@Column
|
||||
private String taskName;
|
||||
|
||||
@Comment("任务显示名称")
|
||||
@Column
|
||||
private String displayName;
|
||||
|
||||
@Comment("任务类型(0:主办任务;1:协办任务)")
|
||||
@Column
|
||||
private Integer taskType;
|
||||
|
||||
@Comment("参与类型(0:普通参与;1:会签参与)")
|
||||
@Column
|
||||
private Integer performType;
|
||||
|
||||
@Comment("任务状态(10:进行中;20:已完成;30:已撤回;40:强行中止;50:挂起;99:已废弃)")
|
||||
@Column
|
||||
private Integer taskState;
|
||||
|
||||
@Comment("任务处理人")
|
||||
@Column
|
||||
private String operator;
|
||||
|
||||
@Comment("任务完成时间")
|
||||
@Column
|
||||
private Date finishTime;
|
||||
|
||||
@Comment("任务期待完成时间")
|
||||
@Column
|
||||
private Date expireTime;
|
||||
|
||||
@Comment("任务处理表单KEY")
|
||||
@Column
|
||||
private String formKey;
|
||||
|
||||
@Comment("父任务ID")
|
||||
@Column
|
||||
private Long taskParentId;
|
||||
|
||||
@Comment("附属变量json存储")
|
||||
@Column
|
||||
private String variable;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.budwk.app.flow.entity;
|
||||
|
||||
import com.budwk.app.base.model.BaseModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.nutz.dao.entity.annotation.Column;
|
||||
import org.nutz.dao.entity.annotation.Comment;
|
||||
import org.nutz.dao.entity.annotation.Id;
|
||||
import org.nutz.dao.entity.annotation.Table;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 流程任务和参与人关系
|
||||
* </p>
|
||||
*
|
||||
* @author mldong
|
||||
* @since 2023-09-26
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Table("wf_process_task_actor")
|
||||
@Comment("流程任务和参与人关系")
|
||||
public class ProcessTaskActor extends BaseModel {
|
||||
|
||||
@Comment("主键")
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
@Comment("流程任务ID")
|
||||
@Column
|
||||
private Long processTaskId;
|
||||
|
||||
@Comment("参与者ID")
|
||||
@Column
|
||||
private String actorId;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user