RobotOpsSysLog.java 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. package com.ruoyi.base.domain;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import org.apache.commons.lang3.builder.ToStringBuilder;
  5. import org.apache.commons.lang3.builder.ToStringStyle;
  6. import com.ruoyi.common.annotation.Excel;
  7. import com.ruoyi.common.core.domain.BaseEntity;
  8. /**
  9. * 运行日志对象 robot_ops_sys_log
  10. *
  11. * @author ruoyi
  12. * @date 2026-05-18
  13. */
  14. public class RobotOpsSysLog extends BaseEntity
  15. {
  16. private static final long serialVersionUID = 1L;
  17. /** 主键ID */
  18. private Long id;
  19. /** 机器人编号 */
  20. @Excel(name = "机器人编号")
  21. private String robotCode;
  22. /** 日志时间,设备侧或服务侧日志发生时间 */
  23. @JsonFormat(pattern = "yyyy-MM-dd")
  24. @Excel(name = "日志时间,设备侧或服务侧日志发生时间", width = 30, dateFormat = "yyyy-MM-dd")
  25. private Date logTime;
  26. /** 日志接收时间 */
  27. @JsonFormat(pattern = "yyyy-MM-dd")
  28. @Excel(name = "日志接收时间", width = 30, dateFormat = "yyyy-MM-dd")
  29. private Date receiveTime;
  30. /** 日志类型 */
  31. @Excel(name = "日志类型")
  32. private String logType;
  33. /** 日志级别 */
  34. @Excel(name = "日志级别")
  35. private String logLevel;
  36. /** 模块名称,如 screen、audio、camera、network、ota */
  37. @Excel(name = "模块名称,如 screen、audio、camera、network、ota")
  38. private String moduleName;
  39. /** 日志摘要 */
  40. @Excel(name = "日志摘要")
  41. private String contentSummary;
  42. /** 日志内容 */
  43. @Excel(name = "日志内容")
  44. private String content;
  45. /** 结果状态 */
  46. @Excel(name = "结果状态")
  47. private String resultStatus;
  48. /** 链路追踪ID */
  49. @Excel(name = "链路追踪ID")
  50. private String traceId;
  51. public void setId(Long id)
  52. {
  53. this.id = id;
  54. }
  55. public Long getId()
  56. {
  57. return id;
  58. }
  59. public void setRobotCode(String robotCode)
  60. {
  61. this.robotCode = robotCode;
  62. }
  63. public String getRobotCode()
  64. {
  65. return robotCode;
  66. }
  67. public void setLogTime(Date logTime)
  68. {
  69. this.logTime = logTime;
  70. }
  71. public Date getLogTime()
  72. {
  73. return logTime;
  74. }
  75. public void setReceiveTime(Date receiveTime)
  76. {
  77. this.receiveTime = receiveTime;
  78. }
  79. public Date getReceiveTime()
  80. {
  81. return receiveTime;
  82. }
  83. public void setLogType(String logType)
  84. {
  85. this.logType = logType;
  86. }
  87. public String getLogType()
  88. {
  89. return logType;
  90. }
  91. public void setLogLevel(String logLevel)
  92. {
  93. this.logLevel = logLevel;
  94. }
  95. public String getLogLevel()
  96. {
  97. return logLevel;
  98. }
  99. public void setModuleName(String moduleName)
  100. {
  101. this.moduleName = moduleName;
  102. }
  103. public String getModuleName()
  104. {
  105. return moduleName;
  106. }
  107. public void setContentSummary(String contentSummary)
  108. {
  109. this.contentSummary = contentSummary;
  110. }
  111. public String getContentSummary()
  112. {
  113. return contentSummary;
  114. }
  115. public void setContent(String content)
  116. {
  117. this.content = content;
  118. }
  119. public String getContent()
  120. {
  121. return content;
  122. }
  123. public void setResultStatus(String resultStatus)
  124. {
  125. this.resultStatus = resultStatus;
  126. }
  127. public String getResultStatus()
  128. {
  129. return resultStatus;
  130. }
  131. public void setTraceId(String traceId)
  132. {
  133. this.traceId = traceId;
  134. }
  135. public String getTraceId()
  136. {
  137. return traceId;
  138. }
  139. @Override
  140. public String toString() {
  141. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  142. .append("id", getId())
  143. .append("robotCode", getRobotCode())
  144. .append("logTime", getLogTime())
  145. .append("receiveTime", getReceiveTime())
  146. .append("logType", getLogType())
  147. .append("logLevel", getLogLevel())
  148. .append("moduleName", getModuleName())
  149. .append("contentSummary", getContentSummary())
  150. .append("content", getContent())
  151. .append("resultStatus", getResultStatus())
  152. .append("traceId", getTraceId())
  153. .append("remark", getRemark())
  154. .append("createTime", getCreateTime())
  155. .toString();
  156. }
  157. }