SysSpiderSourceData.java 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. package com.xzl.system.domain;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.xzl.common.annotation.Excel;
  4. import com.xzl.common.core.domain.BaseEntity;
  5. import org.apache.commons.lang3.builder.ToStringBuilder;
  6. import org.apache.commons.lang3.builder.ToStringStyle;
  7. import java.util.Date;
  8. /**
  9. * 原始采集数据对象 sys_spider_source_data
  10. *
  11. * @author xzl
  12. * @date 2025-11-13
  13. */
  14. public class SysSpiderSourceData extends BaseEntity {
  15. private static final long serialVersionUID = 1L;
  16. /**
  17. * 原始数据ID
  18. */
  19. private Long id;
  20. /**
  21. * 采集页面URL
  22. */
  23. @Excel(name = "采集页面URL")
  24. private String pageUrl;
  25. /**
  26. * 原始文本内容(HTML/JSON等)
  27. */
  28. @Excel(name = "原始文本内容", readConverterExp = "H=TML/JSON等")
  29. private String rawContent;
  30. /**
  31. * 原始文本内容(HTML/JSON等)
  32. */
  33. @Excel(name = "原始文本内容", readConverterExp = "H=TML/JSON等")
  34. private String rawContentFilter;
  35. /**
  36. * 原始附件信息(JSON格式:文件名、URL等)
  37. */
  38. @Excel(name = "原始附件信息", readConverterExp = "J=SON格式:文件名、URL等")
  39. private String rawAttachments;
  40. /**
  41. * 采集时间
  42. */
  43. @JsonFormat(pattern = "yyyy-MM-dd")
  44. @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
  45. private Date collectionTime;
  46. /**
  47. * 关联采集任务ID(便于追溯)
  48. */
  49. @Excel(name = "关联采集任务ID", readConverterExp = "便=于追溯")
  50. private String taskId;
  51. public void setId(Long id) {
  52. this.id = id;
  53. }
  54. public Long getId() {
  55. return id;
  56. }
  57. public void setPageUrl(String pageUrl) {
  58. this.pageUrl = pageUrl;
  59. }
  60. public String getPageUrl() {
  61. return pageUrl;
  62. }
  63. public void setRawContent(String rawContent) {
  64. this.rawContent = rawContent;
  65. }
  66. public void setRawContentFilter(String rawContentFilter) {
  67. this.rawContentFilter = rawContentFilter;
  68. }
  69. public String getRawContent() {
  70. return rawContent;
  71. }
  72. public String getRawContentFilter() {
  73. return rawContentFilter;
  74. }
  75. public void setRawAttachments(String rawAttachments) {
  76. this.rawAttachments = rawAttachments;
  77. }
  78. public String getRawAttachments() {
  79. return rawAttachments;
  80. }
  81. public void setCollectionTime(Date collectionTime) {
  82. this.collectionTime = collectionTime;
  83. }
  84. public Date getCollectionTime() {
  85. return collectionTime;
  86. }
  87. public void setTaskId(String taskId) {
  88. this.taskId = taskId;
  89. }
  90. public String getTaskId() {
  91. return taskId;
  92. }
  93. @Override
  94. public String toString() {
  95. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  96. .append("id", getId())
  97. .append("pageUrl", getPageUrl())
  98. .append("rawContent", getRawContent())
  99. .append("rawContentFilter", getRawContentFilter())
  100. .append("rawAttachments", getRawAttachments())
  101. .append("collectionTime", getCollectionTime())
  102. .append("taskId", getTaskId())
  103. .toString();
  104. }
  105. }