Browse Source

删除qoptioncount(完形填空、阅读理解小题统计)

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

+ 0
- 3
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paperstudent/PaperStudentQuestionVo.java View File

85
     //试题正确还是错误 0未批改  1批改中 2正确  3错误
85
     //试题正确还是错误 0未批改  1批改中 2正确  3错误
86
     private Integer corrected;
86
     private Integer corrected;
87
 
87
 
88
-    //完型填空、阅读理解小题统计
89
-    private Integer qoptioncount;
90
-
91
     //知识点名称
88
     //知识点名称
92
     private String pointname;
89
     private String pointname;
93
 
90
 

+ 0
- 2
sstudy/src/main/resources/mapper/paperstudent/PaperStudentQuestionMapper.xml View File

8
         ,psq.stuscore,psq.qorder,u.username studentname,psq.psid,psq.qn
8
         ,psq.stuscore,psq.qorder,u.username studentname,psq.psid,psq.qn
9
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename,q.hashear,q.hearfile,q.qlevel,q.sorder
9
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename,q.hashear,q.hearfile,q.qlevel,q.sorder
10
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
10
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
11
-        ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
12
         ,(CASE WHEN q.questionpid IS NULL THEN ''
11
         ,(CASE WHEN q.questionpid IS NULL THEN ''
13
         ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze
12
         ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze
14
             ,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile,'qlevel',fq.qlevel,'ctype',fq.ctype)
13
             ,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile,'qlevel',fq.qlevel,'ctype',fq.ctype)
24
         ,psq.stuscore,psq.qorder,u.username studentname,psq.psid,psq.qn
23
         ,psq.stuscore,psq.qorder,u.username studentname,psq.psid,psq.qn
25
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
24
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
26
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
25
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
27
-        ,(CASE WHEN q.ctype IN(7,8) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
28
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
26
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
29
         LEFT JOIN t_user u ON psq.studentid=u.userid
27
         LEFT JOIN t_user u ON psq.studentid=u.userid
30
         WHERE psq.psid=#{psid} and q.ctype in(3,13,14,15)
28
         WHERE psq.psid=#{psid} and q.ctype in(3,13,14,15)

Loading…
Cancel
Save