Browse Source

Merge remote-tracking branch 'origin/master' into ywx

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

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/model/paperstudent/TPaperStudentQuestion.java View File

@@ -65,6 +65,9 @@ public class TPaperStudentQuestion extends BaseBean {
65 65
     //学校id
66 66
     private Integer schoolid;
67 67
 
68
+    //答案类型1选择题、图片2纯文本
69
+    private Integer answertype;
70
+
68 71
     //学生答案
69 72
     private String useranswer;
70 73
 

+ 3
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/model/paperstudent/TPaperStudentScantron.java View File

@@ -65,6 +65,9 @@ public class TPaperStudentScantron extends BaseBean {
65 65
     //学校id
66 66
     private Integer schoolid;
67 67
 
68
+    //答案类型1选择题、图片2纯文本
69
+    private Integer answertype;
70
+
68 71
     //学生答案
69 72
     private String useranswer;
70 73
 

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

@@ -66,6 +66,9 @@ public class PaperStudentQuestionVo {
66 66
     //试题序号
67 67
     private Integer qorder;
68 68
 
69
+    //答案类型1选择题、图片2纯文本
70
+    private Integer answertype;
71
+
69 72
     //学生答案
70 73
     private String useranswer;
71 74
 

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

@@ -49,6 +49,9 @@ public class PaperStudentScantronVo {
49 49
     //试题分值
50 50
     private Double qscore;
51 51
 
52
+    //答案类型1选择题、图片2纯文本
53
+    private Integer answertype;
54
+
52 55
     //学生答案
53 56
     private String useranswer;
54 57
 

+ 3
- 1
sstudy/src/main/resources/mapper/paper/PaperAnalyzeMapper.xml View File

@@ -176,6 +176,7 @@
176 176
             <result property="answered" column="answered"></result>
177 177
             <result property="answertime" column="answertime"></result>
178 178
             <result property="costtime" column="costtime"></result>
179
+            <result property="answertype" column="answertype"></result>
179 180
             <result property="useranswer" column="useranswer"></result>
180 181
             <result property="converted" column="converted"></result>
181 182
             <result property="useranswertext" column="useranswertext"></result>
@@ -223,6 +224,7 @@
223 224
             <result property="pscaid" column="pscaid"></result>
224 225
             <result property="qorder" column="qorder"></result>
225 226
             <result property="answered" column="answered"></result>
227
+            <result property="answertype" column="answertype"></result>
226 228
             <result property="useranswer" column="useranswer"></result>
227 229
             <result property="converted" column="converted"></result>
228 230
             <result property="useranswertext" column="useranswertext"></result>
@@ -244,7 +246,7 @@
244 246
     <!--答题卡作业统计 按人详情 题型列表-->
245 247
     <select id="listPeopleSDetailAnalyze" resultMap="typeSQuestion">
246 248
         SELECT psq.qtypename,psq.pstorder ptorder,psq.pstscore ptscore,psq.pstnum ptnum,
247
-        pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qorder,pss.answered,pss.useranswer,pss.converted,pss.useranswertext,pss.useranswertxt,
249
+        pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qorder,pss.answered,pss.answertype,pss.useranswer,pss.converted,pss.useranswertext,pss.useranswertxt,
248 250
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.device,pss.checkcomm,
249 251
         psc.qtypeid,psc.ctype,psc.psanswer,psc.optionnum
250 252
         FROM t_paper_student_scantron pss LEFT JOIN t_paper_scantron psc ON pss.pscaid = psc.pscaid

+ 3
- 2
sstudy/src/main/resources/mapper/paperstudent/PaperStudedntScantronMapper.xml View File

@@ -4,7 +4,8 @@
4 4
 
5 5
     <!-- 获取学生答题卡信息 -->
6 6
     <select id="listPaperStudentScantrons" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentScantronVo">
7
-        SELECT pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qorder,pss.answered,pss.useranswer,pss.converted,pss.useranswertext,pss.useranswertxt,pss.device,
7
+        SELECT pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qorder,pss.answered,pss.answertype,
8
+               pss.useranswer,pss.converted,pss.useranswertext,pss.useranswertxt,pss.device,
8 9
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.checkcomm,
9 10
         psc.qtypeid,psc.qtypename,psc.ctype,psc.psanswer,psc.optionnum,u.username studentname
10 11
         FROM t_paper_student_scantron pss LEFT JOIN t_user u ON pss.studentid=u.userid
@@ -14,7 +15,7 @@
14 15
 
15 16
     <!-- 获取学生答题卡待批改试题列表- -->
16 17
     <select id="sListCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentScantronVo">
17
-        SELECT pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qorder,pss.answered,pss.useranswer,pss.converted,pss.useranswertext,pss.useranswertxt,
18
+        SELECT pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qorder,pss.answered,pss.useranswer,pss.answertype,pss.converted,pss.useranswertext,pss.useranswertxt,
18 19
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.device,pss.checkcomm,
19 20
         psc.qtypeid,psc.qtypename,psc.ctype,psc.psanswer,u.username studentname
20 21
         FROM t_paper_student_scantron pss LEFT JOIN t_user u ON pss.studentid=u.userid

+ 4
- 3
sstudy/src/main/resources/mapper/paperstudent/PaperStudentQuestionMapper.xml View File

@@ -4,7 +4,7 @@
4 4
     <!--获取学生作业详情-->
5 5
     <select id="getPaperQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
6 6
         SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
7
-        ,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
7
+        ,psq.useranswer,psq.answertype,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
8 8
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename,q.hashear,q.hearfile
9 9
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
10 10
         ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
@@ -19,7 +19,7 @@
19 19
     <!--获取学生待批改试题列表-->
20 20
     <select id="listCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
21 21
         SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
22
-        ,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
22
+        ,psq.useranswer,psq.answertype,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
23 23
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
24 24
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
25 25
         ,(CASE WHEN q.ctype IN(7,8) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
@@ -84,6 +84,7 @@
84 84
             <result property="psid" column="psid"></result>
85 85
             <result property="psqid" column="psqid"></result>
86 86
             <result property="device" column="device"></result>
87
+            <result property="answertype" column="answertype"></result>
87 88
             <result property="useranswer" column="useranswer"></result>
88 89
             <result property="converted" column="converted"></result>
89 90
             <result property="useranswertext" column="useranswertext"></result>
@@ -95,7 +96,7 @@
95 96
     <select id="qcorrectList" resultMap="questionResult">
96 97
         select psq.qscore,psq.qorder,q.qstem,q.qoption,q.qanswer,q.qanalyze
97 98
         ,psq.stuscore,psq.answered,psq.checked,psq.checkcomm,psq.psid,psq.psqid
98
-        ,psq.device,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,u.username,ps.psstate
99
+        ,psq.device,psq.useranswer,psq.converted,psq.answertype,psq.useranswertext,psq.useranswertxt,u.username,ps.psstate
99 100
         from t_paper_student_question psq left join t_question q on psq.questionid = q.questionid
100 101
         left join t_user u on psq.studentid = u.userid
101 102
         left join t_paper_student ps on psq.psid=ps.psid

Loading…
Cancel
Save