Selaa lähdekoodia

教师批阅时仅获取学生已作答试题

tags/正式3.14.1
王宁 4 kuukautta sitten
vanhempi
commit
684625176e

+ 1
- 6
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperstudent/PaperStudentQuestionService.java Näytä tiedosto

@@ -1,16 +1,11 @@
1 1
 package com.xhkjedu.sstudy.service.paperstudent;
2 2
 
3
-import com.alibaba.fastjson.JSON;
4
-import com.xhkjedu.sstudy.mapper.paper.PaperQtypeQuestionMapper;
5 3
 import com.xhkjedu.sstudy.mapper.paperstudent.PaperStudentMapper;
6 4
 import com.xhkjedu.sstudy.mapper.paperstudent.PaperStudentQuestionMapper;
7
-import com.xhkjedu.sstudy.model.paper.TPaperQtypeQuestion;
8 5
 import com.xhkjedu.sstudy.model.paperstudent.TPaperStudentQuestion;
9 6
 import com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo;
10
-import com.xhkjedu.sstudy.vo.paperstudent.StudentPaperVo;
11 7
 import com.xhkjedu.sstudy.vo.paperstudent.StudentVo;
12 8
 import com.xhkjedu.utils.N_Utils;
13
-import org.springframework.beans.factory.annotation.Autowired;
14 9
 import org.springframework.stereotype.Service;
15 10
 
16 11
 import javax.annotation.Resource;
@@ -19,7 +14,6 @@ import java.util.HashMap;
19 14
 import java.util.List;
20 15
 import java.util.Map;
21 16
 import java.util.stream.Collectors;
22
-import java.util.stream.Stream;
23 17
 
24 18
 /**
25 19
  * @author ywx
@@ -69,6 +63,7 @@ public class PaperStudentQuestionService {
69 63
      * @return java.util.List<com.xhkjedu.vo.paperstudent.PaperStudentQuestionVo>
70 64
      **/
71 65
     public List<PaperStudentQuestionVo> listCorrectQuestion(Integer psid) {
66
+        //2024-09-19产品南总确认获取试题时不获取未作答自动批改的试题
72 67
         return paperStudentQuestionMapper.listCorrectQuestion(psid);
73 68
     }
74 69
 

+ 5
- 3
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperstudent/PaperStudentScantronService.java Näytä tiedosto

@@ -6,13 +6,14 @@ import com.xhkjedu.sstudy.model.paperstudent.TPaperStudentScantron;
6 6
 import com.xhkjedu.sstudy.vo.paperstudent.PaperStudentScantronVo;
7 7
 import com.xhkjedu.sstudy.vo.paperstudent.StudentVo;
8 8
 import com.xhkjedu.utils.N_Utils;
9
-import org.springframework.beans.factory.annotation.Autowired;
10 9
 import org.springframework.stereotype.Service;
11 10
 
12 11
 import javax.annotation.Resource;
13
-import java.util.*;
12
+import java.util.ArrayList;
13
+import java.util.HashMap;
14
+import java.util.List;
15
+import java.util.Map;
14 16
 import java.util.stream.Collectors;
15
-import java.util.stream.Stream;
16 17
 
17 18
 /**
18 19
  * @ClassName PaperStudentScantronService
@@ -47,6 +48,7 @@ public class PaperStudentScantronService {
47 48
      * @return java.util.List<com.xhkjedu.vo.paperstudent.PaperStudentScantronVo>
48 49
      **/
49 50
     public List<PaperStudentScantronVo> sListCorrectQuestion(Integer psid) {
51
+        //2024-09-19产品南总确认获取试题时不获取未作答自动批改的试题
50 52
         return paperStudentScantronMapper.sListCorrectQuestion(psid);
51 53
     }
52 54
 

+ 1
- 1
sstudy/src/main/resources/mapper/paperstudent/PaperStudedntScantronMapper.xml Näytä tiedosto

@@ -30,7 +30,7 @@
30 30
         pss.good,psc.qtypeid,psc.qtypename,psc.ctype,psc.psanswer
31 31
         FROM t_paper_student_scantron pss
32 32
         LEFT JOIN t_paper_scantron psc ON pss.pscaid = psc.pscaid
33
-        WHERE pss.psid=#{psid} and psc.ctype in(3,13,14,15)
33
+        WHERE pss.psid=#{psid} and pss.answered=1 and psc.ctype in(3,13,14,15)
34 34
         order by pss.qorder
35 35
     </select>
36 36
 

+ 1
- 1
sstudy/src/main/resources/mapper/paperstudent/PaperStudentQuestionMapper.xml Näytä tiedosto

@@ -41,7 +41,7 @@
41 41
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
42 42
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
43 43
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
44
-        WHERE psq.psid=#{psid} and q.ctype in(3,13,14,15)
44
+        WHERE psq.psid=#{psid} and psq.answered=1 and q.ctype in(3,13,14,15)
45 45
         ORDER BY psq.qorder
46 46
     </select>
47 47
     <!--作业关联试题列表-->

Loading…
Peruuta
Tallenna