|
@@ -301,6 +301,7 @@
|
301
|
301
|
<update id="submitPaper">
|
302
|
302
|
update t_paper_student set stoptime=#{ps.stoptime},costtime=ifnull(costtime,0)+#{ps.costtime}
|
303
|
303
|
,psstate=#{ps.psstate},userscore=#{ps.userscore},pschecked=#{ps.pschecked},showanswer=#{ps.showanswer}
|
|
304
|
+ <if test="ps.autocheck!=null">,autocheck=#{ps.autocheck}</if>
|
304
|
305
|
where psid=#{ps.psid}
|
305
|
306
|
</update>
|
306
|
307
|
<!--批量修改题库作业学生作答信息-->
|
|
@@ -374,6 +375,7 @@
|
374
|
375
|
update t_paper_student set stoptime=#{ps.stoptime},costtime=#{ps.costtime}
|
375
|
376
|
,psstate=#{ps.psstate},pschecked=#{ps.pschecked},showanswer=#{ps.showanswer}
|
376
|
377
|
,userscore=(SELECT SUM(IFNULL(q.stuscore,0)) FROM t_paper_student_scantron q WHERE q.psid=#{ps.psid})
|
|
378
|
+ <if test="ps.autocheck!=null">,autocheck=#{ps.autocheck}</if>
|
377
|
379
|
where psid=#{ps.psid}
|
378
|
380
|
</update>
|
379
|
381
|
<!--题库作业提交更新操作-->
|
|
@@ -381,6 +383,7 @@
|
381
|
383
|
update t_paper_student set stoptime=#{ps.stoptime},costtime=#{ps.costtime}
|
382
|
384
|
,psstate=#{ps.psstate},pschecked=#{ps.pschecked},showanswer=#{ps.showanswer}
|
383
|
385
|
,userscore=(SELECT SUM(IFNULL(q.stuscore,0)) FROM t_paper_student_question q WHERE q.psid=#{ps.psid})
|
|
386
|
+ <if test="ps.autocheck!=null">,autocheck=#{ps.autocheck}</if>
|
384
|
387
|
where psid=#{ps.psid}
|
385
|
388
|
</update>
|
386
|
389
|
<!--作业学生列表-->
|