|
@@ -295,6 +295,7 @@
|
295
|
295
|
<update id="submitPaper">
|
296
|
296
|
update t_paper_student set stoptime=#{ps.stoptime},costtime=ifnull(costtime,0)+#{ps.costtime}
|
297
|
297
|
,psstate=#{ps.psstate},userscore=#{ps.userscore},pschecked=#{ps.pschecked},showanswer=#{ps.showanswer}
|
|
298
|
+ <if test="ps.autocheck!=null">,autocheck=#{ps.autocheck}</if>
|
298
|
299
|
where psid=#{ps.psid}
|
299
|
300
|
</update>
|
300
|
301
|
<!--批量修改题库作业学生作答信息-->
|
|
@@ -368,6 +369,7 @@
|
368
|
369
|
update t_paper_student set stoptime=#{ps.stoptime},costtime=#{ps.costtime}
|
369
|
370
|
,psstate=#{ps.psstate},pschecked=#{ps.pschecked},showanswer=#{ps.showanswer}
|
370
|
371
|
,userscore=(SELECT SUM(IFNULL(q.stuscore,0)) FROM t_paper_student_scantron q WHERE q.psid=#{ps.psid})
|
|
372
|
+ <if test="ps.autocheck!=null">,autocheck=#{ps.autocheck}</if>
|
371
|
373
|
where psid=#{ps.psid}
|
372
|
374
|
</update>
|
373
|
375
|
<!--题库作业提交更新操作-->
|
|
@@ -375,6 +377,7 @@
|
375
|
377
|
update t_paper_student set stoptime=#{ps.stoptime},costtime=#{ps.costtime}
|
376
|
378
|
,psstate=#{ps.psstate},pschecked=#{ps.pschecked},showanswer=#{ps.showanswer}
|
377
|
379
|
,userscore=(SELECT SUM(IFNULL(q.stuscore,0)) FROM t_paper_student_question q WHERE q.psid=#{ps.psid})
|
|
380
|
+ <if test="ps.autocheck!=null">,autocheck=#{ps.autocheck}</if>
|
378
|
381
|
where psid=#{ps.psid}
|
379
|
382
|
</update>
|
380
|
383
|
<!--作业学生列表-->
|