Browse Source

Merge remote-tracking branch 'origin/ywx' into wn

ywx
王宁 4 weeks ago
parent
commit
3b14d59f5d

+ 1
- 1
smarking/src/main/resources/mapper/papercheck/MsPaperCheckMapper.xml View File

62
     </select>
62
     </select>
63
     <!--获取题块分配教师列表-->
63
     <!--获取题块分配教师列表-->
64
     <select id="listTeacherByMBlockId" resultType="com.xhkjedu.smarking.model.papercheck.MsPaperCheckTeacher">
64
     <select id="listTeacherByMBlockId" resultType="com.xhkjedu.smarking.model.papercheck.MsPaperCheckTeacher">
65
-        select pct.mpctid, pct.teacherid, pct.tasknum,pct.mpid,pct.mblockid
65
+        select pct.mpctid, pct.teacherid, count(pctt.mpcttid) as tasknum,pct.mpid,pct.mblockid
66
         ,count(if(pctt.checkstate in(2,3),1,null)) as checkednum,count(pctt.mpcttid) as assignednum
66
         ,count(if(pctt.checkstate in(2,3),1,null)) as checkednum,count(pctt.mpcttid) as assignednum
67
         from ms_paper_check_teacher pct left join ms_paper_check_teacher_task pctt on pct.mblockid = pctt.mblockid and pct.teacherid = pctt.teacherid
67
         from ms_paper_check_teacher pct left join ms_paper_check_teacher_task pctt on pct.mblockid = pctt.mblockid and pct.teacherid = pctt.teacherid
68
         where pct.mpid = #{mpid} and pct.mblockid = #{mblockid}
68
         where pct.mpid = #{mpid} and pct.mblockid = #{mblockid}

+ 2
- 2
smarking/src/main/resources/mapper/papercheck/MsPaperCheckTeacherMapper.xml View File

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

+ 1
- 1
smarking/src/main/resources/mapper/papercheck/MsPaperCheckTeacherTaskMapper.xml View File

573
     <!--获取教师批阅数量-->
573
     <!--获取教师批阅数量-->
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 pct.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
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}
578
             where pct.mpid=#{param.mpid} and pct.teacherid=#{param.handleid} and pct.mblockid=#{param.mblockid}
579
         </if>
579
         </if>

Loading…
Cancel
Save