|
@@ -45,7 +45,15 @@
|
45
|
45
|
,0 schoolmaxscore,0 schoolavgscore,0 goal,0 nextgoal
|
46
|
46
|
</if>
|
47
|
47
|
<if test="showrank==1">
|
48
|
|
- ,rs.score,rs.bzscore,rs.classrank,rs.classrankpre,rs.classmaxscore,rs.classavgscore,rs.schoolrank
|
|
48
|
+ ,rs.score,rs.bzscore,0 classrank,0 classrankpre,rs.classmaxscore,rs.classavgscore,0 schoolrank
|
|
49
|
+ ,rs.schoolmaxscore,rs.schoolavgscore,0 goal,0 nextgoal
|
|
50
|
+ </if>
|
|
51
|
+ <if test="showrank==2">
|
|
52
|
+ ,rs.score,rs.bzscore,rs.classrank,rs.classrankpre,rs.classmaxscore,rs.classavgscore,0 schoolrank
|
|
53
|
+ ,rs.schoolmaxscore,rs.schoolavgscore,0 goal,0 nextgoal
|
|
54
|
+ </if>
|
|
55
|
+ <if test="showrank==3">
|
|
56
|
+ ,rs.score,rs.bzscore,0 classrank,0 classrankpre,rs.classmaxscore,rs.classavgscore,rs.schoolrank
|
49
|
57
|
,rs.schoolmaxscore,rs.schoolavgscore,rs.goal,rs.nextgoal
|
50
|
58
|
</if>
|
51
|
59
|
,eps.device,eps.submittype,eps.endtime
|
|
@@ -81,7 +89,15 @@
|
81
|
89
|
,0 schoolmaxscore,0 schoolavgscore,0 goal,0 nextgoal
|
82
|
90
|
</if>
|
83
|
91
|
<if test="showrank==1">
|
84
|
|
- ,rs.score,rs.bzscore,rs.classrank,rs.classrankpre,rs.classmaxscore,rs.classavgscore,rs.schoolrank
|
|
92
|
+ ,rs.score,rs.bzscore,0 classrank,0 classrankpre,rs.classmaxscore,rs.classavgscore,0 schoolrank
|
|
93
|
+ ,rs.schoolmaxscore,rs.schoolavgscore,0 goal,0 nextgoal
|
|
94
|
+ </if>
|
|
95
|
+ <if test="showrank==2">
|
|
96
|
+ ,rs.score,rs.bzscore,rs.classrank,rs.classrankpre,rs.classmaxscore,rs.classavgscore,0 schoolrank
|
|
97
|
+ ,rs.schoolmaxscore,rs.schoolavgscore,0 goal,0 nextgoal
|
|
98
|
+ </if>
|
|
99
|
+ <if test="showrank==3">
|
|
100
|
+ ,rs.score,rs.bzscore,0 classrank,0 classrankpre,rs.classmaxscore,rs.classavgscore,rs.schoolrank
|
85
|
101
|
,rs.schoolmaxscore,rs.schoolavgscore,rs.goal,rs.nextgoal
|
86
|
102
|
</if>
|
87
|
103
|
from e_rstudent rs where rs.examid=#{examid} and rs.studentid=#{studentid} and rs.subjectid=#{subjectid}
|
|
@@ -93,7 +109,7 @@
|
93
|
109
|
,0 stuscore,0 stusrate,0 gradescore,0 gradesrate,0 gradeavgscore
|
94
|
110
|
,0 classscore,0 classsrate,0 classavgscore
|
95
|
111
|
</if>
|
96
|
|
- <if test="showrank==1">
|
|
112
|
+ <if test="showrank!=0">
|
97
|
113
|
,sp.stuscore,sp.stusrate,cp.gradescore,cp.gradesrate,cp.gradeavgscore
|
98
|
114
|
,cp.classscore,cp.classsrate,cp.classavgscore
|
99
|
115
|
</if>
|
|
@@ -108,7 +124,7 @@
|
108
|
124
|
,0 stuscore,0 stusrate,0 gradescore,0 gradeavgscore,0 gradesrate
|
109
|
125
|
,0 classscore,0 classavgscore,0 classsrate
|
110
|
126
|
</if>
|
111
|
|
- <if test="showrank==1">
|
|
127
|
+ <if test="showrank!=0">
|
112
|
128
|
,sc.stuscore,sc.stusrate,cc.gradescore,cc.gradeavgscore,cc.gradesrate
|
113
|
129
|
,cc.classscore,cc.classavgscore,cc.classsrate
|
114
|
130
|
</if>
|
|
@@ -123,7 +139,7 @@
|
123
|
139
|
,0 stuscore,0 stusrate,0 gradescore,0 gradesrate,0 gradeavgscore
|
124
|
140
|
,0 classscore,0 classsrate,0 classavgscore
|
125
|
141
|
</if>
|
126
|
|
- <if test="showrank==1">
|
|
142
|
+ <if test="showrank!=0">
|
127
|
143
|
,st.stuscore,st.stusrate,ct.gradescore,ct.gradesrate,ct.gradeavgscore
|
128
|
144
|
,ct.classscore,ct.classsrate,ct.classavgscore
|
129
|
145
|
</if>
|
|
@@ -138,7 +154,7 @@
|
138
|
154
|
,0 stuscore,0 classscore,0 classsrate,0 gradescore,0 gradesrate
|
139
|
155
|
,0 gradeavgscore,0 classavgscore
|
140
|
156
|
</if>
|
141
|
|
- <if test="showrank==1">
|
|
157
|
+ <if test="showrank!=0">
|
142
|
158
|
,sq.stuscore,cq.classscore,cq.classsrate,cq.gradescore,cq.gradesrate
|
143
|
159
|
,cq.gradeavgscore,cq.classavgscore
|
144
|
160
|
</if>
|
|
@@ -172,7 +188,7 @@
|
172
|
188
|
<if test="showrank==0">
|
173
|
189
|
,0 classscore,0 classsrate,0 gradescore,0 gradesrate,0 classavgscore,0 gradeavgscore
|
174
|
190
|
</if>
|
175
|
|
- <if test="showrank==1">
|
|
191
|
+ <if test="showrank!=0">
|
176
|
192
|
,cq.classscore,cq.classsrate,cq.gradescore,cq.gradesrate,cq.classavgscore,cq.gradeavgscore
|
177
|
193
|
</if>
|
178
|
194
|
from e_rclass_question cq
|
|
@@ -181,12 +197,6 @@
|
181
|
197
|
</select>
|
182
|
198
|
<select id="listSubjectQuestionsStuScore" resultType="java.util.Map">
|
183
|
199
|
select sq.stuscore,sq.qscore,sq.questionid squestionid
|
184
|
|
- <!--<if test="showrank==0">-->
|
185
|
|
- <!-- ,0 stuscore-->
|
186
|
|
- <!--</if>-->
|
187
|
|
- <!--<if test="showrank==1">-->
|
188
|
|
- <!-- ,sq.stuscore-->
|
189
|
|
- <!--</if>-->
|
190
|
200
|
from e_paper_student_question sq
|
191
|
201
|
left join t_question q on sq.questionid=q.questionid
|
192
|
202
|
where sq.studentid=#{studentid} and sq.epid=#{epid} and (q.questionid=#{questionid} or q.questionpid=#{questionid})
|
|
@@ -245,7 +255,7 @@
|
245
|
255
|
<if test="showrank==0">
|
246
|
256
|
,0 stuscore,0 classavgscore,0 gradeavgscore
|
247
|
257
|
</if>
|
248
|
|
- <if test="showrank==1">
|
|
258
|
+ <if test="showrank!=0">
|
249
|
259
|
,sq.stuscore,cq.classavgscore,cq.gradeavgscore
|
250
|
260
|
</if>
|
251
|
261
|
from e_paper_student_question sq left join t_question q on sq.questionid=q.questionid
|
|
@@ -273,7 +283,7 @@
|
273
|
283
|
<if test="showrank==0">
|
274
|
284
|
,0 stuscore,0 classavgscore,0 gradeavgscore
|
275
|
285
|
</if>
|
276
|
|
- <if test="showrank==1">
|
|
286
|
+ <if test="showrank!=0">
|
277
|
287
|
,sq.stuscore,cq.classavgscore,cq.gradeavgscore
|
278
|
288
|
</if>
|
279
|
289
|
from e_paper_student_question sq left join e_rclass_question cq on sq.eptqid=cq.eptqid and sq.classid=cq.classid
|
|
@@ -296,7 +306,7 @@
|
296
|
306
|
</collection>
|
297
|
307
|
</resultMap>
|
298
|
308
|
<select id="listStudentSubjectErrorQues" resultMap="listStudentSubjectErrorQues">
|
299
|
|
- <if test="showrank==1">
|
|
309
|
+ <if test="showrank!=0">
|
300
|
310
|
select sq.subjectid,st.subjectname,p.ptype,sq.epsqid,sq.eptqid,q.questionid,q.qlevel,q.questionpid
|
301
|
311
|
from e_paper_student_question sq
|
302
|
312
|
left join t_question q on q.questionid=sq.questionid
|