package com.linghu.model.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; /** * 提问结果子表 * @TableName question_result */ @TableName(value ="question_result") @Data public class QuestionResultList implements Serializable { /** * 自增主键 */ @TableId(type = IdType.AUTO) private Long id; /** * 关联关键词任务ID */ private String keyword_task_id; /** * 提问内容 */ private String question; /** * 回答内容 */ private String response; /** * 提取的结果数 */ private Integer extracted_count; /** * 提问时间戳 */ private LocalDateTime timestamp; /** * 提问状态(success/failed) */ private String status; /** * 提问错误信息 */ private String error; /** * 轮次编号 */ private Integer num; /** * 批次编号 */ private Integer batch_num; /** * 记录创建时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date create_time; private Integer keyword_id; @TableField(exist = false) private static final long serialVersionUID = 1L; @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } QuestionResultList other = (QuestionResultList) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getKeyword_task_id() == null ? other.getKeyword_task_id() == null : this.getKeyword_task_id().equals(other.getKeyword_task_id())) && (this.getQuestion() == null ? other.getQuestion() == null : this.getQuestion().equals(other.getQuestion())) && (this.getResponse() == null ? other.getResponse() == null : this.getResponse().equals(other.getResponse())) && (this.getExtracted_count() == null ? other.getExtracted_count() == null : this.getExtracted_count().equals(other.getExtracted_count())) && (this.getTimestamp() == null ? other.getTimestamp() == null : this.getTimestamp().equals(other.getTimestamp())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getError() == null ? other.getError() == null : this.getError().equals(other.getError())) && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) && (this.getBatch_num() == null ? other.getBatch_num() == null : this.getBatch_num().equals(other.getBatch_num())) && (this.getCreate_time() == null ? other.getCreate_time() == null : this.getCreate_time().equals(other.getCreate_time())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getKeyword_task_id() == null) ? 0 : getKeyword_task_id().hashCode()); result = prime * result + ((getQuestion() == null) ? 0 : getQuestion().hashCode()); result = prime * result + ((getResponse() == null) ? 0 : getResponse().hashCode()); result = prime * result + ((getExtracted_count() == null) ? 0 : getExtracted_count().hashCode()); result = prime * result + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getError() == null) ? 0 : getError().hashCode()); result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode()); result = prime * result + ((getBatch_num() == null) ? 0 : getBatch_num().hashCode()); result = prime * result + ((getCreate_time() == null) ? 0 : getCreate_time().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(", keyword_task_id=").append(keyword_task_id); sb.append(", question=").append(question); sb.append(", response=").append(response); sb.append(", extracted_count=").append(extracted_count); sb.append(", timestamp=").append(timestamp); sb.append(", status=").append(status); sb.append(", error=").append(error); sb.append(", num=").append(num); sb.append(", batch_num=").append(batch_num); sb.append(", create_time=").append(create_time); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }