From 00d3a4abb14ad49291d3b365e6b81986df601fc2 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期四, 09 一月 2025 15:36:23 +0800 Subject: [PATCH] 扩展内置监听器注入字段 --- flowable/src/main/java/com/ycl/domain/entity/SysListener.java | 110 ++++++++++++++++++++++++++++++------------------------ 1 files changed, 61 insertions(+), 49 deletions(-) diff --git a/flowable/src/main/java/com/ycl/domain/entity/SysListener.java b/flowable/src/main/java/com/ycl/domain/entity/SysListener.java index a54d394..71ca9dc 100644 --- a/flowable/src/main/java/com/ycl/domain/entity/SysListener.java +++ b/flowable/src/main/java/com/ycl/domain/entity/SysListener.java @@ -2,8 +2,11 @@ import com.ycl.common.annotation.Excel; import com.ycl.common.core.domain.BaseEntity; +import com.ycl.domain.dto.FlowListenerFieldDTO; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; + +import java.util.List; /** * 娴佺▼鐩戝惉瀵硅薄 sys_listener @@ -41,86 +44,95 @@ /** 鐘舵�� */ @Excel(name = "鐘舵��") private Integer status; + /** 榛樿鐨勬敞鍏ュ瓧娈� */ + private String fieldsStr; + /** 榛樿鐨勬敞鍏ュ瓧娈� */ + private List<FlowListenerFieldDTO> fields; - public void setId(Long id) - { + public Long getId() { + return id; + } + + public void setId(Long id) { this.id = id; } - public Long getId() - { - return id; + public String getName() { + return name; } - public void setName(String name) - { + + public void setName(String name) { this.name = name; } - public String getName() - { - return name; + public String getType() { + return type; } - public void setType(String type) - { + + public void setType(String type) { this.type = type; } - public String getType() - { - return type; + public String getEventType() { + return eventType; } - public void setEventType(String eventType) - { + + public void setEventType(String eventType) { this.eventType = eventType; } - public String getEventType() - { - return eventType; + public String getValueType() { + return valueType; } - public void setValueType(String valueType) - { + + public void setValueType(String valueType) { this.valueType = valueType; } - public String getValueType() - { - return valueType; + public String getValue() { + return value; } - public void setValue(String value) - { + + public void setValue(String value) { this.value = value; } - public String getValue() - { - return value; + public Integer getStatus() { + return status; } - public void setStatus(Integer status) - { + + public void setStatus(Integer status) { this.status = status; } - public Integer getStatus() - { - return status; + public String getFieldsStr() { + return fieldsStr; + } + + public void setFieldsStr(String fieldsStr) { + this.fieldsStr = fieldsStr; + } + + public List<FlowListenerFieldDTO> getFields() { + return fields; + } + + public void setFields(List<FlowListenerFieldDTO> fields) { + this.fields = fields; } @Override public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("id", getId()) - .append("name", getName()) - .append("type", getType()) - .append("eventType", getEventType()) - .append("valueType", getValueType()) - .append("value", getValue()) - .append("createTime", getCreateTime()) - .append("updateTime", getUpdateTime()) - .append("createBy", getCreateBy()) - .append("updateBy", getUpdateBy()) - .append("status", getStatus()) - .append("remark", getRemark()) - .toString(); + return "SysListener{" + + "id=" + id + + ", name='" + name + '\'' + + ", type='" + type + '\'' + + ", eventType='" + eventType + '\'' + + ", valueType='" + valueType + '\'' + + ", value='" + value + '\'' + + ", status=" + status + + ", fieldsStr='" + fieldsStr + '\'' + + ", fields=" + fields + + '}'; } } -- Gitblit v1.8.0