|
|
@@ -0,0 +1,161 @@
|
|
|
+package com.jzg.commons.entity.report.po;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2025/9/16 15:30
|
|
|
+ * @Description: 导入任务表
|
|
|
+ */
|
|
|
+@TableName(value ="report_upload_excel_task")
|
|
|
+@Data
|
|
|
+@Schema(description = "导入任务表")
|
|
|
+@AllArgsConstructor
|
|
|
+@NoArgsConstructor
|
|
|
+public class ReportUploadExcelTask implements Serializable {
|
|
|
+ /**
|
|
|
+ * 主键
|
|
|
+ */
|
|
|
+ @Schema(description = "主键")
|
|
|
+ @TableId(type = IdType.ASSIGN_ID)
|
|
|
+ private String id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入数据名称
|
|
|
+ */
|
|
|
+ @Schema(description = "导入数据名称")
|
|
|
+ private String taskName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入路由
|
|
|
+ */
|
|
|
+ @Schema(description = "导入路由")
|
|
|
+ private String routerPathKey;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入人
|
|
|
+ */
|
|
|
+ @Schema(description = "导入人id")
|
|
|
+ private String uploadUserId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入人名字
|
|
|
+ */
|
|
|
+ @Schema(description = "导入人名字")
|
|
|
+ private String uploadUserName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入时间
|
|
|
+ */
|
|
|
+ @Schema(description = "导入时间")
|
|
|
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
|
|
+ private Date uploadDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 任务状态 0.失败 1 进行中 2. 完成
|
|
|
+ */
|
|
|
+ @Schema(description = "导入状态")
|
|
|
+ private Integer taskStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 已读未读状态 0.未读 1.已读
|
|
|
+ */
|
|
|
+ @Schema(description = "已读未读状态 0.未读 1.已读")
|
|
|
+ private Integer readStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入数据信息
|
|
|
+ */
|
|
|
+ @Schema(description = "导入数据信息")
|
|
|
+ private String uploadMsg;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 文件路径
|
|
|
+ */
|
|
|
+ @Schema(description = "文件路径")
|
|
|
+ private String filePath;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导入时间
|
|
|
+ */
|
|
|
+ @Schema(description = "导入时间")
|
|
|
+ private String uploadMinutes;
|
|
|
+
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object that) {
|
|
|
+ if (this == that) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (that == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (getClass() != that.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ ReportUploadExcelTask other = (ReportUploadExcelTask) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getTaskName() == null ? other.getTaskName() == null : this.getTaskName().equals(other.getTaskName()))
|
|
|
+ && (this.getRouterPathKey() == null ? other.getRouterPathKey() == null : this.getRouterPathKey().equals(other.getRouterPathKey()))
|
|
|
+ && (this.getUploadUserId() == null ? other.getUploadUserId() == null : this.getUploadUserId().equals(other.getUploadUserId()))
|
|
|
+ && (this.getUploadUserName() == null ? other.getUploadUserName() == null : this.getUploadUserName().equals(other.getUploadUserName()))
|
|
|
+ && (this.getUploadDate() == null ? other.getUploadDate() == null : this.getUploadDate().equals(other.getUploadDate()))
|
|
|
+ && (this.getTaskStatus() == null ? other.getTaskStatus() == null : this.getTaskStatus().equals(other.getTaskStatus()))
|
|
|
+ && (this.getReadStatus() == null ? other.getReadStatus() == null : this.getReadStatus().equals(other.getReadStatus()))
|
|
|
+ && (this.getUploadMsg() == null ? other.getUploadMsg() == null : this.getUploadMsg().equals(other.getUploadMsg()))
|
|
|
+ && (this.getFilePath() == null ? other.getFilePath() == null : this.getFilePath().equals(other.getFilePath()))
|
|
|
+ && (this.getUploadMinutes() == null ? other.getUploadMinutes() == null : this.getUploadMinutes().equals(other.getUploadMinutes()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ final int prime = 31;
|
|
|
+ int result = 1;
|
|
|
+ result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getTaskName() == null) ? 0 : getTaskName().hashCode());
|
|
|
+ result = prime * result + ((getRouterPathKey() == null) ? 0 : getRouterPathKey().hashCode());
|
|
|
+ result = prime * result + ((getUploadUserId() == null) ? 0 : getUploadUserId().hashCode());
|
|
|
+ result = prime * result + ((getUploadUserName() == null) ? 0 : getUploadUserName().hashCode());
|
|
|
+ result = prime * result + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode());
|
|
|
+ result = prime * result + ((getTaskStatus() == null) ? 0 : getTaskStatus().hashCode());
|
|
|
+ result = prime * result + ((getReadStatus() == null) ? 0 : getReadStatus().hashCode());
|
|
|
+ result = prime * result + ((getUploadMsg() == null) ? 0 : getUploadMsg().hashCode());
|
|
|
+ result = prime * result + ((getFilePath() == null) ? 0 : getFilePath().hashCode());
|
|
|
+ result = prime * result + ((getUploadMinutes() == null) ? 0 : getUploadMinutes().hashCode());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append(getClass().getSimpleName());
|
|
|
+ sb.append(" [");
|
|
|
+ sb.append("Hash = ").append(hashCode());
|
|
|
+ sb.append(", id=").append(id);
|
|
|
+ sb.append(", taskName=").append(taskName);
|
|
|
+ sb.append(", routerPathKey=").append(routerPathKey);
|
|
|
+ sb.append(", uploadUserId=").append(uploadUserId);
|
|
|
+ sb.append(", uploadUserName=").append(uploadUserName);
|
|
|
+ sb.append(", uploadDate=").append(uploadDate);
|
|
|
+ sb.append(", taskStatus=").append(taskStatus);
|
|
|
+ sb.append(", readStatus=").append(readStatus);
|
|
|
+ sb.append(", uploadMsg=").append(uploadMsg);
|
|
|
+ sb.append(", filePath=").append(filePath);
|
|
|
+ sb.append(", uploadMinutes=").append(uploadMinutes);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|