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,7 +62,7 @@
62 62
     </select>
63 63
     <!--获取题块分配教师列表-->
64 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 66
         ,count(if(pctt.checkstate in(2,3),1,null)) as checkednum,count(pctt.mpcttid) as assignednum
67 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 68
         where pct.mpid = #{mpid} and pct.mblockid = #{mblockid}

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

@@ -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

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

@@ -573,7 +573,7 @@
573 573
     <!--获取教师批阅数量-->
574 574
     <select id="getCheckNum" resultType="com.xhkjedu.smarking.model.papercheck.MsPaperCheckTeacher">
575 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 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 578
             where pct.mpid=#{param.mpid} and pct.teacherid=#{param.handleid} and pct.mblockid=#{param.mblockid}
579 579
         </if>

Loading…
Cancel
Save