|
@@ -4,9 +4,11 @@ import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import com.qmth.sop.business.bean.result.FlowTaskResult;
|
|
import com.qmth.sop.business.bean.result.FlowTaskResult;
|
|
|
|
+import com.qmth.sop.common.enums.FlowStatusEnum;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description: 流程表单属性bean
|
|
* @Description: 流程表单属性bean
|
|
@@ -22,6 +24,12 @@ public class FormPropertyBean implements Serializable {
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
Long flowId;
|
|
Long flowId;
|
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "流程状态")
|
|
|
|
+ FlowStatusEnum status;
|
|
|
|
+
|
|
|
|
+ @ApiModelProperty(value = "流程状态")
|
|
|
|
+ String statusStr;
|
|
|
|
+
|
|
@ApiModelProperty(value = "sopid")
|
|
@ApiModelProperty(value = "sopid")
|
|
String sopId;
|
|
String sopId;
|
|
|
|
|
|
@@ -46,11 +54,33 @@ public class FormPropertyBean implements Serializable {
|
|
this.setupMap = setupMap;
|
|
this.setupMap = setupMap;
|
|
}
|
|
}
|
|
|
|
|
|
- public FormPropertyBean(Long flowId, Long taskId, Long userId, FlowTaskResult setupMap) {
|
|
|
|
|
|
+ public FormPropertyBean(Long flowId, Long taskId, Long userId, FlowTaskResult setupMap, FlowStatusEnum status, String sopId) {
|
|
this.flowId = flowId;
|
|
this.flowId = flowId;
|
|
this.taskId = taskId;
|
|
this.taskId = taskId;
|
|
this.userId = userId;
|
|
this.userId = userId;
|
|
this.setupMap = setupMap;
|
|
this.setupMap = setupMap;
|
|
|
|
+ this.status = status;
|
|
|
|
+ this.sopId = sopId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getStatusStr() {
|
|
|
|
+ if (Objects.nonNull(status)) {
|
|
|
|
+ return this.status.getTitle();
|
|
|
|
+ } else {
|
|
|
|
+ return statusStr;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setStatusStr(String statusStr) {
|
|
|
|
+ this.statusStr = statusStr;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public FlowStatusEnum getStatus() {
|
|
|
|
+ return status;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setStatus(FlowStatusEnum status) {
|
|
|
|
+ this.status = status;
|
|
}
|
|
}
|
|
|
|
|
|
public String getSopId() {
|
|
public String getSopId() {
|