package com.ruoyi.system.domain; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; /** * 任务操作日志对象 sys_task_log * * @author ruoyi * @date 2024-01-15 */ public class SysTaskLog extends BaseEntity { private static final long serialVersionUID = 1L; /** 日志ID */ private Long logId; /** 任务ID */ @Excel(name = "任务ID") private Long taskId; /** 操作类型 */ @Excel(name = "操作类型", readConverterExp = "CREATE=创建,UPDATE=更新,ASSIGN=分配,STATUS_CHANGE=状态变更,DELETE=删除") private String operationType; /** 操作描述 */ @Excel(name = "操作描述") private String operationDesc; /** 操作前值 */ @Excel(name = "操作前值") private String oldValue; /** 操作后值 */ @Excel(name = "操作后值") private String newValue; /** 操作人ID */ @Excel(name = "操作人ID") private Long operatorId; /** 操作人姓名 */ @Excel(name = "操作人姓名") private String operatorName; /** 操作时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date operationTime; /** IP地址 */ @Excel(name = "IP地址") private String ipAddress; public void setLogId(Long logId) { this.logId = logId; } public Long getLogId() { return logId; } public void setTaskId(Long taskId) { this.taskId = taskId; } public Long getTaskId() { return taskId; } public void setOperationType(String operationType) { this.operationType = operationType; } public String getOperationType() { return operationType; } public void setOperationDesc(String operationDesc) { this.operationDesc = operationDesc; } public String getOperationDesc() { return operationDesc; } public void setOldValue(String oldValue) { this.oldValue = oldValue; } public String getOldValue() { return oldValue; } public void setNewValue(String newValue) { this.newValue = newValue; } public String getNewValue() { return newValue; } public void setOperatorId(Long operatorId) { this.operatorId = operatorId; } public Long getOperatorId() { return operatorId; } public void setOperatorName(String operatorName) { this.operatorName = operatorName; } public String getOperatorName() { return operatorName; } public void setOperationTime(Date operationTime) { this.operationTime = operationTime; } public Date getOperationTime() { return operationTime; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } public String getIpAddress() { return ipAddress; } @Override public String toString() { return "SysTaskLog{" + "logId=" + logId + ", taskId=" + taskId + ", operationType='" + operationType + '\'' + ", operationDesc='" + operationDesc + '\'' + ", oldValue='" + oldValue + '\'' + ", newValue='" + newValue + '\'' + ", operatorId=" + operatorId + ", operatorName='" + operatorName + '\'' + ", operationTime=" + operationTime + ", ipAddress='" + ipAddress + '\'' + '}'; } }