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
 
2
 
3
 import com.alibaba.fastjson.JSON;
3
 import com.alibaba.fastjson.JSON;
4
 import com.xhkjedu.sexam.mapper.paper.EPaperFileMapper;
4
 import com.xhkjedu.sexam.mapper.paper.EPaperFileMapper;
5
-import com.xhkjedu.sexam.mapper.paper.EPaperQtypeMapper;
6
 import com.xhkjedu.sexam.mapper.paper.EPaperQtypeQuestionMapper;
5
 import com.xhkjedu.sexam.mapper.paper.EPaperQtypeQuestionMapper;
7
 import com.xhkjedu.sexam.mapper.paperstudent.EPaperStudentMapper;
6
 import com.xhkjedu.sexam.mapper.paperstudent.EPaperStudentMapper;
8
 import com.xhkjedu.sexam.mapper.paperstudent.EPaperStudentQuestionMapper;
7
 import com.xhkjedu.sexam.mapper.paperstudent.EPaperStudentQuestionMapper;
464
             paperStudent.setSstate(3);
463
             paperStudent.setSstate(3);
465
             paperStudent.setBatchid(pswvo.getBatchid());
464
             paperStudent.setBatchid(pswvo.getBatchid());
466
             if(N_Utils.isEmptyInteger(pswvo.getHasbad())){
465
             if(N_Utils.isEmptyInteger(pswvo.getHasbad())){
467
-                paperStudent.setHasbad(1);
468
-            }else{
469
                 paperStudent.setHasbad(0);
466
                 paperStudent.setHasbad(0);
467
+            }else{
468
+                paperStudent.setHasbad(1);
470
             }
469
             }
471
 
470
 
472
             ePaperStudentMapper.updateStudentPaperState(paperStudent);
471
             ePaperStudentMapper.updateStudentPaperState(paperStudent);

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

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

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

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

Loading…
Cancel
Save