package com.ruoyi.base.domain; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; /** * 运行日志对象 robot_ops_sys_log * * @author ruoyi * @date 2026-05-18 */ public class RobotOpsSysLog extends BaseEntity { private static final long serialVersionUID = 1L; /** 主键ID */ private Long id; /** 机器人编号 */ @Excel(name = "机器人编号") private String robotCode; /** 日志时间,设备侧或服务侧日志发生时间 */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "日志时间,设备侧或服务侧日志发生时间", width = 30, dateFormat = "yyyy-MM-dd") private Date logTime; /** 日志接收时间 */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "日志接收时间", width = 30, dateFormat = "yyyy-MM-dd") private Date receiveTime; /** 日志类型 */ @Excel(name = "日志类型") private String logType; /** 日志级别 */ @Excel(name = "日志级别") private String logLevel; /** 模块名称,如 screen、audio、camera、network、ota */ @Excel(name = "模块名称,如 screen、audio、camera、network、ota") private String moduleName; /** 日志摘要 */ @Excel(name = "日志摘要") private String contentSummary; /** 日志内容 */ @Excel(name = "日志内容") private String content; /** 结果状态 */ @Excel(name = "结果状态") private String resultStatus; /** 链路追踪ID */ @Excel(name = "链路追踪ID") private String traceId; public void setId(Long id) { this.id = id; } public Long getId() { return id; } public void setRobotCode(String robotCode) { this.robotCode = robotCode; } public String getRobotCode() { return robotCode; } public void setLogTime(Date logTime) { this.logTime = logTime; } public Date getLogTime() { return logTime; } public void setReceiveTime(Date receiveTime) { this.receiveTime = receiveTime; } public Date getReceiveTime() { return receiveTime; } public void setLogType(String logType) { this.logType = logType; } public String getLogType() { return logType; } public void setLogLevel(String logLevel) { this.logLevel = logLevel; } public String getLogLevel() { return logLevel; } public void setModuleName(String moduleName) { this.moduleName = moduleName; } public String getModuleName() { return moduleName; } public void setContentSummary(String contentSummary) { this.contentSummary = contentSummary; } public String getContentSummary() { return contentSummary; } public void setContent(String content) { this.content = content; } public String getContent() { return content; } public void setResultStatus(String resultStatus) { this.resultStatus = resultStatus; } public String getResultStatus() { return resultStatus; } public void setTraceId(String traceId) { this.traceId = traceId; } public String getTraceId() { return traceId; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) .append("robotCode", getRobotCode()) .append("logTime", getLogTime()) .append("receiveTime", getReceiveTime()) .append("logType", getLogType()) .append("logLevel", getLogLevel()) .append("moduleName", getModuleName()) .append("contentSummary", getContentSummary()) .append("content", getContent()) .append("resultStatus", getResultStatus()) .append("traceId", getTraceId()) .append("remark", getRemark()) .append("createTime", getCreateTime()) .toString(); } }