|
@@ -16,7 +16,7 @@
|
16
|
16
|
</update>
|
17
|
17
|
<!--题块阅卷教师列表-->
|
18
|
18
|
<select id="listCheckTeacher" resultType="java.util.Map">
|
19
|
|
- select pct.mpid,pct.mblockid,pct.teacherid,pct.tasknum,u.username as teachername
|
|
19
|
+ select pct.mpid,pct.mblockid,pct.teacherid,count(pctt.mpcttid) as tasknum,u.username as teachername
|
20
|
20
|
,count(if(pctt.checkstate=3,1,null)) as checknum
|
21
|
21
|
from ms_paper_check_teacher pct left join t_user u on pct.teacherid = u.userid
|
22
|
22
|
left join ms_paper_check_teacher_task pctt on pct.mblockid = pctt.mblockid and pct.teacherid = pctt.teacherid
|
|
@@ -31,7 +31,7 @@
|
31
|
31
|
</select>
|
32
|
32
|
<!--获取教师题块批阅信息-->
|
33
|
33
|
<select id="getTeacherBlockCheck" resultType="com.xhkjedu.smarking.model.papercheck.MsPaperCheckTeacher">
|
34
|
|
- select pct.mpctid,pct.mpid,pct.mblockid,pct.teacherid,pct.tasknum,pct.deleted
|
|
34
|
+ select pct.mpctid,pct.mpid,pct.mblockid,pct.teacherid,count(pctt.mpcttid) as tasknum,pct.deleted
|
35
|
35
|
,count(if(pctt.checkstate in(2,3),1,null)) as checkednum
|
36
|
36
|
,group_concat(if(pctt.checkstate=1,pctt.mpcttid,null)) as mpcttids
|
37
|
37
|
from ms_paper_check_teacher pct left join ms_paper_check_teacher_task pctt on pct.mblockid = pctt.mblockid and pct.teacherid = pctt.teacherid
|