|
@@ -0,0 +1,124 @@
|
|
|
+package com.qmth.distributed.print.business.bean.flow;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
+import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
+import com.qmth.distributed.print.business.enums.TFCustomTypeEnum;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 自定义流程save dto
|
|
|
+ * @Param:
|
|
|
+ * @return:
|
|
|
+ * @Author: wangliang
|
|
|
+ * @Date: 2022/1/21
|
|
|
+ */
|
|
|
+public class CustomFlowSaveDto implements Serializable {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "id")
|
|
|
+ @NotBlank(message = "流程名称")
|
|
|
+ String name;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "流程类型")
|
|
|
+ @NotNull(message = "流程类型不能为空")
|
|
|
+ TFCustomTypeEnum type;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "流程节点内容")
|
|
|
+ List<CustomFlowDto> customFlowLists;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "是否发布,0:否,1:是")
|
|
|
+ Boolean publish;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "学校id")
|
|
|
+ @JsonSerialize(using = ToStringSerializer.class)
|
|
|
+ Long schoolId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "机构id")
|
|
|
+ @JsonSerialize(using = ToStringSerializer.class)
|
|
|
+ Long orgId;
|
|
|
+
|
|
|
+ public void setSchoolAndOrgInfo(Long schoolId, Long orgId) {
|
|
|
+ this.schoolId = schoolId;
|
|
|
+ this.orgId = orgId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public TFCustomTypeEnum getType() {
|
|
|
+ return type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setType(TFCustomTypeEnum type) {
|
|
|
+ this.type = type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<CustomFlowDto> getCustomFlowLists() {
|
|
|
+ return customFlowLists;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCustomFlowLists(List<CustomFlowDto> customFlowLists) {
|
|
|
+ this.customFlowLists = customFlowLists;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Boolean getPublish() {
|
|
|
+ return publish;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPublish(Boolean publish) {
|
|
|
+ this.publish = publish;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getSchoolId() {
|
|
|
+ return schoolId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSchoolId(Long schoolId) {
|
|
|
+ this.schoolId = schoolId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getOrgId() {
|
|
|
+ return orgId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOrgId(Long orgId) {
|
|
|
+ this.orgId = orgId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object o) {
|
|
|
+ if (this == o) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (o == null || getClass() != o.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ CustomFlowSaveDto that = (CustomFlowSaveDto) o;
|
|
|
+ return name.equals(that.name) && type == that.type && schoolId.equals(that.schoolId) && orgId.equals(that.orgId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ return Objects.hash(name, type, schoolId, orgId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "CustomFlowSaveDto{" +
|
|
|
+ "name='" + name + '\'' +
|
|
|
+ ", type=" + type +
|
|
|
+ ", schoolId=" + schoolId +
|
|
|
+ ", orgId=" + orgId +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
+}
|