Browse Source

教师批阅列表

tags/正式版本
雍文秀 2 years ago
parent
commit
72cf7a7170

+ 2
- 3
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EPaperStudentService.java View File

@@ -2,7 +2,6 @@ package com.xhkjedu.sexam.service.paperstudent;
2 2
 
3 3
 import com.alibaba.fastjson.JSON;
4 4
 import com.xhkjedu.sexam.mapper.paper.EPaperFileMapper;
5
-import com.xhkjedu.sexam.mapper.paper.EPaperQtypeMapper;
6 5
 import com.xhkjedu.sexam.mapper.paper.EPaperQtypeQuestionMapper;
7 6
 import com.xhkjedu.sexam.mapper.paperstudent.EPaperStudentMapper;
8 7
 import com.xhkjedu.sexam.mapper.paperstudent.EPaperStudentQuestionMapper;
@@ -464,9 +463,9 @@ public class EPaperStudentService {
464 463
             paperStudent.setSstate(3);
465 464
             paperStudent.setBatchid(pswvo.getBatchid());
466 465
             if(N_Utils.isEmptyInteger(pswvo.getHasbad())){
467
-                paperStudent.setHasbad(1);
468
-            }else{
469 466
                 paperStudent.setHasbad(0);
467
+            }else{
468
+                paperStudent.setHasbad(1);
470 469
             }
471 470
 
472 471
             ePaperStudentMapper.updateStudentPaperState(paperStudent);

+ 0
- 4
sexam/src/main/resources/mapper/exam/EClassStudentMapper.xml View File

@@ -21,8 +21,4 @@
21 21
             and (u.username like '%${cs.studentname}%' or u.studentno like '%${cs.studentname}%')
22 22
         </if>
23 23
     </select>
24
-
25
-    <select id="listClassStuByExamid" resultType="java.util.Map">
26
-
27
-    </select>
28 24
 </mapper>

+ 2
- 2
sexam/src/main/resources/mapper/paper/EPaperCorrectTeacherMapper.xml View File

@@ -21,7 +21,7 @@
21 21
         left join e_paper_student_question psq on psq.eptqid=pq.eptqid
22 22
         where pq.teacherid=#{teacherid} group by p.epid)a left join e_subject es on a.esid = es.esid
23 23
         left join e_base eb on es.examid = eb.examid
24
-        where a.tjnum!=a.pynum
24
+        where a.tjnum!=a.pynum and eb.deleted=1
25 25
     </select>
26 26
     <!--已阅卷列表-->
27 27
     <select id="listMarked" resultType="java.util.Map">
@@ -43,7 +43,7 @@
43 43
         left join e_paper_student_question psq on psq.eptqid=pq.eptqid
44 44
         where pq.teacherid=#{teacherid} group by p.epid)a left join e_subject es on a.esid = es.esid
45 45
         left join e_base eb on es.examid = eb.examid
46
-        where a.tjnum>0 and a.tjnum=a.pynum
46
+        where a.tjnum>0 and a.tjnum=a.pynum and eb.deleted=1
47 47
     </select>
48 48
     <!--随机获取一条待批阅试题-->
49 49
     <select id="getCorrectQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">

Loading…
Cancel
Save