package com.ruoyi.system.event;
|
|
import org.springframework.context.ApplicationEvent;
|
|
/**
|
* 任务事件基类
|
*
|
* @author ruoyi
|
* @date 2025-10-25
|
*/
|
public abstract class TaskEvent extends ApplicationEvent {
|
|
private static final long serialVersionUID = 1L;
|
|
/** 任务ID */
|
private Long taskId;
|
|
/** 任务编号 */
|
private String taskCode;
|
|
/** 操作人ID */
|
private Long operatorId;
|
|
/** 操作人姓名 */
|
private String operatorName;
|
|
public TaskEvent(Object source, Long taskId, String taskCode) {
|
super(source);
|
this.taskId = taskId;
|
this.taskCode = taskCode;
|
}
|
|
public TaskEvent(Object source, Long taskId, String taskCode, Long operatorId, String operatorName) {
|
super(source);
|
this.taskId = taskId;
|
this.taskCode = taskCode;
|
this.operatorId = operatorId;
|
this.operatorName = operatorName;
|
}
|
|
public Long getTaskId() {
|
return taskId;
|
}
|
|
public void setTaskId(Long taskId) {
|
this.taskId = taskId;
|
}
|
|
public String getTaskCode() {
|
return taskCode;
|
}
|
|
public void setTaskCode(String taskCode) {
|
this.taskCode = taskCode;
|
}
|
|
public Long getOperatorId() {
|
return operatorId;
|
}
|
|
public void setOperatorId(Long operatorId) {
|
this.operatorId = operatorId;
|
}
|
|
public String getOperatorName() {
|
return operatorName;
|
}
|
|
public void setOperatorName(String operatorName) {
|
this.operatorName = operatorName;
|
}
|
}
|