|
@@ -88,14 +88,14 @@
|
88
|
88
|
<!--获取待仲裁任务-->
|
89
|
89
|
<select id="getCorrectArbitrate" resultType="java.util.Map">
|
90
|
90
|
<if test="param.correcttype==3">
|
91
|
|
- select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.mpsbid,psb.arbitratescore,2 as answertype
|
|
91
|
+ select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.stumerge,psb.mpsbid,psb.arbitratescore,2 as answertype
|
92
|
92
|
from ms_paper_check pc inner join ms_paper_student_block psb on psb.mblockid = pc.mblockid and psb.mpid = pc.mpid
|
93
|
93
|
where pc.mpid=#{param.mpid} and pc.arbitrateid=#{param.handleid}
|
94
|
94
|
and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
|
95
|
95
|
order by psb.mpsbid limit 1
|
96
|
96
|
</if>
|
97
|
97
|
<if test="param.correcttype==2">
|
98
|
|
- select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
|
|
98
|
+ select pc.mpid,pc.mblockid,pc.correcttype,psb.stuanswer,psb.stumerge,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
|
99
|
99
|
from ms_paper_check pc inner join ms_paper_student_question psb on psb.mptqid = pc.mblockid and psb.mpid = pc.mpid
|
100
|
100
|
where pc.mpid=#{param.mpid} and pc.arbitrateid=#{param.handleid}
|
101
|
101
|
and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
|
|
@@ -120,14 +120,14 @@
|
120
|
120
|
<!--教师阅卷-待仲裁-上一份-->
|
121
|
121
|
<select id="getPreArbitrate" resultType="java.util.Map">
|
122
|
122
|
<if test="param.correcttype==3">
|
123
|
|
- select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,psb.mpsbid,psb.arbitratescore,2 as answertype
|
|
123
|
+ select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,psb.stumerge,psb.mpsbid,psb.arbitratescore,2 as answertype
|
124
|
124
|
from ms_paper_student_block psb inner join ms_paper_check_teacher_arbitrate pcta on pcta.mpid=psb.mpid and pcta.mpsbid=psb.mpsbid
|
125
|
125
|
where pcta.mpid=#{param.mpid} and pcta.teacherid=#{param.handleid} and pcta.mblockid=#{param.mblockid}
|
126
|
126
|
and pcta.checkstate=3 and #{param.taskorder}>pcta.taskorder
|
127
|
127
|
order by pcta.taskorder desc limit 1
|
128
|
128
|
</if>
|
129
|
129
|
<if test="param.correcttype==2">
|
130
|
|
- select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,pcta.mpsbid,psb.arbitratescore,psb.answertype
|
|
130
|
+ select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psb.stuanswer,psb.stumerge,pcta.mpsbid,psb.arbitratescore,psb.answertype
|
131
|
131
|
from ms_paper_student_question psb inner join ms_paper_check_teacher_arbitrate pcta on pcta.mpid=psb.mpid and pcta.mpsbid=psb.mpsqid
|
132
|
132
|
where pcta.mpid=#{param.mpid} and pcta.teacherid=#{param.handleid} and pcta.mblockid=#{param.mblockid}
|
133
|
133
|
and pcta.checkstate=3 and #{param.taskorder}>pcta.taskorder
|
|
@@ -176,13 +176,13 @@
|
176
|
176
|
<!--学科组长-获取待仲裁任务-->
|
177
|
177
|
<select id="getCorrectLeaderArbitrate" resultType="java.util.Map">
|
178
|
178
|
<if test="param.correcttype==3">
|
179
|
|
- select psb.mpid,psb.mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.mpsbid,psb.arbitratescore,2 as answertype
|
|
179
|
+ select psb.mpid,psb.mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.stumerge,psb.mpsbid,psb.arbitratescore,2 as answertype
|
180
|
180
|
from ms_paper_student_block psb
|
181
|
181
|
where psb.mpid=#{param.mpid} and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
|
182
|
182
|
order by psb.mpsbid limit 1
|
183
|
183
|
</if>
|
184
|
184
|
<if test="param.correcttype==2">
|
185
|
|
- select psb.mpid,psb.mpsqid as mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
|
|
185
|
+ select psb.mpid,psb.mpsqid as mblockid,#{param.correcttype} as correcttype,psb.stuanswer,psb.stumerge,psb.mpsqid as mpsbid,psb.arbitratescore,psb.answertype
|
186
|
186
|
from ms_paper_student_question psb
|
187
|
187
|
where psb.mpid=#{param.mpid} and (psb.arbitratestate=1 or (psb.arbitratestate=2 and psb.arbitrateid=#{param.handleid}))
|
188
|
188
|
order by psb.mpsqid limit 1
|
|
@@ -201,7 +201,7 @@
|
201
|
201
|
</select>
|
202
|
202
|
<!--仲裁历史详情-->
|
203
|
203
|
<select id="detailHistory" resultType="java.util.Map">
|
204
|
|
- select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psq.stuanswer,pcta.mpsbid,psq.arbitratescore
|
|
204
|
+ select pcta.mpid,pcta.mblockid,#{param.correcttype} as correcttype,pcta.taskorder,psq.stuanswer,psq.stumerge,pcta.mpsbid,psq.arbitratescore
|
205
|
205
|
,if(#{param.correcttype}=3,2,psq.answertype) as answertype
|
206
|
206
|
from ms_paper_check_teacher_arbitrate pcta
|
207
|
207
|
<if test="param.correcttype==3">
|