zxl
2025-02-24 17e9ad4bbbbd0129e8da4dc0cfeee0028d7121e0
business/src/main/java/com/ycl/event/event/TaskLogEvent.java
@@ -15,7 +15,14 @@
@Getter
@Setter
public class TaskLogEvent extends ApplicationEvent {
    /**
     * id
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 项目id
     */
@@ -30,6 +37,10 @@
     * 任务id
     */
    private String taskId;
    /**
     * 任务名
     */
    private String taskName;
    /**
     * 事件类型
@@ -51,12 +62,15 @@
     * @param taskId 任务id
     * @param otherData 其它数据
     */
    public TaskLogEvent(Object source, Long projectId, String processInsId, String taskId, ProcessLogEventTypeEnum eventType, Object otherData) {
    public TaskLogEvent(Object source,Long id,Long userId, Long projectId, String processInsId, String taskId, String taskName,ProcessLogEventTypeEnum eventType, Object otherData) {
        super(source);
        this.id = id;
        this.userId = userId;
        this.projectId = projectId;
        this.processInsId = processInsId;
        this.eventType = eventType;
        this.taskId = taskId;
        this.taskName = taskName;
        this.otherData = otherData;
    }
}