|
|
|
|
574
|
<select id="getCheckNum" resultType="com.xhkjedu.smarking.model.papercheck.MsPaperCheckTeacher">
|
574
|
<select id="getCheckNum" resultType="com.xhkjedu.smarking.model.papercheck.MsPaperCheckTeacher">
|
575
|
<if test="param.dispenseway!=null and param.dispenseway!=2">
|
575
|
<if test="param.dispenseway!=null and param.dispenseway!=2">
|
576
|
select count(pctt.mpcttid) as tasknum,count(if(pctt.checkstate=3,1,null)) as checkednum
|
576
|
select count(pctt.mpcttid) as tasknum,count(if(pctt.checkstate=3,1,null)) as checkednum
|
577
|
- from ms_paper_check_teacher pct left join ms_paper_check_teacher_task pctt on pct.mpid=pctt.mpid and pct.teacherid=pctt.teacherid pct.mblockid=pctt.mblockid
|
|
|
578
|
- where pct.mpid=#{param.mpid} and pct.teacherid=#{param.handleid} and pct.mblockid=#{param.mblockid}
|
|
|
|
|
577
|
+ from ms_paper_check_teacher pct left join ms_paper_check_teacher_task pctt on pct.mpid=pctt.mpid and pct.teacherid=pctt.teacherid and pct.mblockid=pctt.mblockid
|
|
|
578
|
+ where pct.mpid=#{param.mpid} and pct.teacherid=#{param.teacherid} and pct.mblockid=#{param.mblockid}
|
579
|
</if>
|
579
|
</if>
|
580
|
<if test="param.dispenseway!=null and param.dispenseway==2">
|
580
|
<if test="param.dispenseway!=null and param.dispenseway==2">
|
581
|
<if test="param.correcttype==3">
|
581
|
<if test="param.correcttype==3">
|