TestPaper.java
3.27 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
package com.fh.bean;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.Gson;
public class TestPaper {
// 测试ID
private String testpaperId ;
// 测验标题
private String name ;
// 试卷ID
private String paperId ;
// 班级ID
private String classId ;
// 教师ID
private String teacherId ;
// 开始日期
private String startDate ;
//结束日期
private String endDate ;
//创建日期
private String createDate ;
// 其他分数
private String otherScore ;
// 最高分
private String highScore ;
//最低分
private String lowScore ;
// 平均分
private String avgScore ;
private String totalScore;
// 备注
private String remark ;
private String test_type ;
private String subject_id ;
private List<StudentAnswer> students = new ArrayList<StudentAnswer>();
public String getTestpaperId() {
return testpaperId;
}
public void setTestpaperId(String testpaperId) {
this.testpaperId = testpaperId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPaperId() {
return paperId;
}
public void setPaperId(String paperId) {
this.paperId = paperId;
}
public String getClassId() {
return classId;
}
public void setClassId(String classId) {
this.classId = classId;
}
public String getTeacherId() {
return teacherId;
}
public void setTeacherId(String teacherId) {
this.teacherId = teacherId;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public String getCreateDate() {
return createDate;
}
public void setCreateDate(String createDate) {
this.createDate = createDate;
}
public String getOtherScore() {
return otherScore;
}
public void setOtherScore(String otherScore) {
this.otherScore = otherScore;
}
public String getHighScore() {
return highScore;
}
public void setHighScore(String highScore) {
this.highScore = highScore;
}
public String getLowScore() {
return lowScore;
}
public void setLowScore(String lowScore) {
this.lowScore = lowScore;
}
public String getAvgScore() {
return avgScore;
}
public void setAvgScore(String avgScore) {
this.avgScore = avgScore;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getTest_type() {
return test_type;
}
public void setTest_type(String test_type) {
this.test_type = test_type;
}
public List<StudentAnswer> getStudents() {
return students;
}
public void setStudents(List<StudentAnswer> students) {
this.students = students;
}
public String getTotalScore() {
return totalScore;
}
public void setTotalScore(String totalScore) {
this.totalScore = totalScore;
}
public static TestPaper parse(String json){
Gson gson = new Gson();
return gson.fromJson(json, TestPaper.class);
}
public String getSubject_id() {
return subject_id;
}
public void setSubject_id(String subject_id) {
this.subject_id = subject_id;
}
public String toJson(){
Gson gson = new Gson();
return gson.toJson(this);
}
}