diff --git a/erupt-extra/erupt-flow/src/console/src/views/workspace/WorkSpace.vue b/erupt-extra/erupt-flow/src/console/src/views/workspace/WorkSpace.vue index f091428e7..15696c7ef 100644 --- a/erupt-extra/erupt-flow/src/console/src/views/workspace/WorkSpace.vue +++ b/erupt-extra/erupt-flow/src/console/src/views/workspace/WorkSpace.vue @@ -32,7 +32,7 @@ - + 取 消 提 交 diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivity.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivity.java index 15e07f24b..9b1fbb4eb 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivity.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivity.java @@ -1,7 +1,9 @@ package xyz.erupt.flow.bean.entity; import com.alibaba.fastjson.JSON; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -54,6 +56,7 @@ public class OaProcessActivity { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField + @TableId(type = IdType.AUTO) private Long id; @EruptField(views = @View(title = "节点key")) diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivityHistory.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivityHistory.java index 7b75e3d39..455483f76 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivityHistory.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessActivityHistory.java @@ -1,7 +1,9 @@ package xyz.erupt.flow.bean.entity; import com.alibaba.fastjson.JSON; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -16,7 +18,6 @@ import xyz.erupt.annotation.sub_field.ViewType; import xyz.erupt.annotation.sub_field.sub_edit.Search; import xyz.erupt.flow.bean.entity.node.OaProcessNode; -import xyz.erupt.jpa.model.BaseModel; import javax.persistence.*; import java.util.Date; @@ -39,6 +40,7 @@ public class OaProcessActivityHistory { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField + @TableId(type = IdType.AUTO) private Long id; @EruptField(views = @View(title = "节点key")) diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessDefinition.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessDefinition.java index 8c1dce45e..dd379b7b0 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessDefinition.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessDefinition.java @@ -1,7 +1,9 @@ package xyz.erupt.flow.bean.entity; import com.alibaba.fastjson.JSON; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -42,6 +44,7 @@ public class OaProcessDefinition { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField(views = @View(title = "流程定义ID", sortable = true)) + @TableId(type = IdType.AUTO) private String id; /** diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessExecution.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessExecution.java index 41b89e811..7c52d6367 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessExecution.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessExecution.java @@ -1,6 +1,8 @@ package xyz.erupt.flow.bean.entity; import com.alibaba.fastjson.JSON; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -15,7 +17,6 @@ import xyz.erupt.annotation.sub_field.ViewType; import xyz.erupt.annotation.sub_field.sub_edit.Search; import xyz.erupt.flow.bean.entity.node.OaProcessNode; -import xyz.erupt.jpa.model.BaseModel; import javax.persistence.*; import java.util.Date; @@ -46,6 +47,7 @@ public class OaProcessExecution { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField + @TableId(type = IdType.AUTO) private Long id; @EruptField(views = @View(title = "父线程id")) diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstance.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstance.java index 665c3b0e4..341851a35 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstance.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstance.java @@ -2,6 +2,8 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -52,6 +54,7 @@ public class OaProcessInstance { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField + @TableId(type = IdType.AUTO) private Long id; @EruptField(views = @View(title = "流程定义id", show = true)) diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstanceHistory.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstanceHistory.java index 51bd3e67c..b4baf29c7 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstanceHistory.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaProcessInstanceHistory.java @@ -1,6 +1,8 @@ package xyz.erupt.flow.bean.entity; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -44,6 +46,7 @@ public class OaProcessInstanceHistory { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField(views = @View(title = "实例ID")) + @TableId(type = IdType.AUTO) private Long id; @EruptField(views = @View(title = "流程定义id")) diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTask.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTask.java index 506f0918d..5620f6ecc 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTask.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTask.java @@ -1,6 +1,8 @@ package xyz.erupt.flow.bean.entity; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -40,6 +42,7 @@ public class OaTask { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField + @TableId(type = IdType.AUTO) private Long id; @EruptField(views = @View(title = "节点id")) diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskHistory.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskHistory.java index 32a0ef7cb..83099d85d 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskHistory.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskHistory.java @@ -1,6 +1,8 @@ package xyz.erupt.flow.bean.entity; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; @@ -42,6 +44,7 @@ public class OaTaskHistory { @GenericGenerator(name = "generator", strategy = "native") @Column(name = "id") @EruptField(views = @View(title = "任务ID")) + @TableId(type = IdType.AUTO) private Long id; @Transient//标识虚拟列 diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskOperation.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskOperation.java index a43e15ddf..516a64f70 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskOperation.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskOperation.java @@ -1,10 +1,13 @@ package xyz.erupt.flow.bean.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import org.hibernate.annotations.GenericGenerator; import xyz.erupt.annotation.Erupt; import xyz.erupt.annotation.EruptField; import xyz.erupt.annotation.sub_erupt.Power; @@ -12,10 +15,8 @@ import xyz.erupt.annotation.sub_field.View; import xyz.erupt.annotation.sub_field.ViewType; import xyz.erupt.annotation.sub_field.sub_edit.Search; -import xyz.erupt.jpa.model.BaseModel; -import javax.persistence.Entity; -import javax.persistence.Table; +import javax.persistence.*; import java.util.Date; @Erupt(name = "任务操作日志" @@ -29,7 +30,7 @@ @Builder @AllArgsConstructor @NoArgsConstructor -public class OaTaskOperation extends BaseModel { +public class OaTaskOperation { public static final String COMPLETE = "COMPLETE";//完成 public static final String REFUSE = "REFUSE";//拒绝,走拒绝策略 @@ -37,6 +38,14 @@ public class OaTaskOperation extends BaseModel { public static final String SHUTDOWN = "SHUTDOWN";//终止 public static final String ASSIGN = "ASSIGN";//转办 + @Id + @GeneratedValue(generator = "generator") + @GenericGenerator(name = "generator", strategy = "native") + @Column(name = "id") + @EruptField + @TableId(type = IdType.AUTO) + private Long id; + @EruptField(views = @View(title = "流程实例id")) private Long processInstId; diff --git a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskUserLink.java b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskUserLink.java index 667c8d351..008a175e1 100644 --- a/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskUserLink.java +++ b/erupt-extra/erupt-flow/src/main/java/xyz/erupt/flow/bean/entity/OaTaskUserLink.java @@ -1,16 +1,19 @@ package xyz.erupt.flow.bean.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; +import org.hibernate.annotations.GenericGenerator; import xyz.erupt.annotation.Erupt; +import xyz.erupt.annotation.EruptField; import xyz.erupt.annotation.sub_erupt.Power; import xyz.erupt.jpa.model.BaseModel; -import javax.persistence.Entity; -import javax.persistence.Table; +import javax.persistence.*; /** * 用户和候选人的中间表 @@ -27,6 +30,14 @@ @NoArgsConstructor public class OaTaskUserLink extends BaseModel { + @Id + @GeneratedValue(generator = "generator") + @GenericGenerator(name = "generator", strategy = "native") + @Column(name = "id") + @EruptField + @TableId(type = IdType.AUTO) + private Long id; + private Long taskId; /**