|
@@ -11,9 +11,9 @@
|
11
|
11
|
</insert>
|
12
|
12
|
<!--保存或更新单个任务-->
|
13
|
13
|
<insert id="save">
|
14
|
|
- insert into ms_paper_check_teacher_task (mpid, mblockid, teacherid, taskorder, mpsbid, checktype, createtime)
|
15
|
|
- values (#{s.mpid},#{s.mblockid},#{s.teacherid},#{s.taskorder},#{s.mpsbid},#{s.checktype},#{s.createtime})
|
16
|
|
- on duplicate key update taskorder=#{s.taskorder},teacherid=#{s.teacherid}
|
|
14
|
+ insert into ms_paper_check_teacher_task (mpid, mblockid, mptqid, teacherid, taskorder, mpsbid, checktype, createtime)
|
|
15
|
+ values (#{s.mpid},#{s.mblockid},#{s.mptqid},#{s.teacherid},#{s.taskorder},#{s.mpsbid},#{s.checktype},#{s.createtime})
|
|
16
|
+ on duplicate key update taskorder=#{s.taskorder},teacherid=#{s.teacherid},mblockid=#{s.mblockid}
|
17
|
17
|
</insert>
|
18
|
18
|
<!--批量更新任务信息-->
|
19
|
19
|
<update id="batchUpdate">
|
|
@@ -565,6 +565,9 @@
|
565
|
565
|
from ms_paper_student_question psq inner join ms_paper_check_teacher_task pctt on psq.mpsqid = pctt.mpsbid and psq.mpid=pctt.mpid
|
566
|
566
|
where pctt.mpid=#{param.mpid} and pctt.mblockid = #{param.mblockid} and pctt.teacherid = #{param.teacherid}
|
567
|
567
|
and pctt.checkstate!=3 and psq.hasproblem=0
|
|
568
|
+ <if test="param.mptqid!=null and param.mptqid!=0">
|
|
569
|
+ and psq.mptqid=#{param.mptqid}
|
|
570
|
+ </if>
|
568
|
571
|
order by field(pctt.checkstate,2,1,3),pctt.taskorder
|
569
|
572
|
limit 1
|
570
|
573
|
</if>
|
|
@@ -583,6 +586,9 @@
|
583
|
586
|
</if>
|
584
|
587
|
)))
|
585
|
588
|
and psq.hasproblem=0
|
|
589
|
+ <if test="param.mptqid!=null and param.mptqid!=0">
|
|
590
|
+ and psq.mptqid=#{param.mptqid}
|
|
591
|
+ </if>
|
586
|
592
|
order by field(psq.checked,2,1,3),psq.mptqid
|
587
|
593
|
limit 1
|
588
|
594
|
</if>
|