guyue
8 天以前 a9287c6b562da327587e2a4bac92df14eb7e2b01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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 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;
 
    /**
     * 记录创建时间
     */
    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();
    }
}