Browse Source

学生作业添加字段

tags/正式版本
王宁 2 years ago
parent
commit
937f015c3f

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

65
     //学校id
65
     //学校id
66
     private Integer schoolid;
66
     private Integer schoolid;
67
 
67
 
68
+    //答案类型1选择题、图片2纯文本
69
+    private Integer answertype;
70
+
68
     //学生答案
71
     //学生答案
69
     private String useranswer;
72
     private String useranswer;
70
 
73
 

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

65
     //学校id
65
     //学校id
66
     private Integer schoolid;
66
     private Integer schoolid;
67
 
67
 
68
+    //答案类型1选择题、图片2纯文本
69
+    private Integer answertype;
70
+
68
     //学生答案
71
     //学生答案
69
     private String useranswer;
72
     private String useranswer;
70
 
73
 

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

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

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

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

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

176
             <result property="answered" column="answered"></result>
176
             <result property="answered" column="answered"></result>
177
             <result property="answertime" column="answertime"></result>
177
             <result property="answertime" column="answertime"></result>
178
             <result property="costtime" column="costtime"></result>
178
             <result property="costtime" column="costtime"></result>
179
+            <result property="answertype" column="answertype"></result>
179
             <result property="useranswer" column="useranswer"></result>
180
             <result property="useranswer" column="useranswer"></result>
180
             <result property="converted" column="converted"></result>
181
             <result property="converted" column="converted"></result>
181
             <result property="useranswertext" column="useranswertext"></result>
182
             <result property="useranswertext" column="useranswertext"></result>
223
             <result property="pscaid" column="pscaid"></result>
224
             <result property="pscaid" column="pscaid"></result>
224
             <result property="qorder" column="qorder"></result>
225
             <result property="qorder" column="qorder"></result>
225
             <result property="answered" column="answered"></result>
226
             <result property="answered" column="answered"></result>
227
+            <result property="answertype" column="answertype"></result>
226
             <result property="useranswer" column="useranswer"></result>
228
             <result property="useranswer" column="useranswer"></result>
227
             <result property="converted" column="converted"></result>
229
             <result property="converted" column="converted"></result>
228
             <result property="useranswertext" column="useranswertext"></result>
230
             <result property="useranswertext" column="useranswertext"></result>
244
     <!--答题卡作业统计 按人详情 题型列表-->
246
     <!--答题卡作业统计 按人详情 题型列表-->
245
     <select id="listPeopleSDetailAnalyze" resultMap="typeSQuestion">
247
     <select id="listPeopleSDetailAnalyze" resultMap="typeSQuestion">
246
         SELECT psq.qtypename,psq.pstorder ptorder,psq.pstscore ptscore,psq.pstnum ptnum,
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
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.device,pss.checkcomm,
250
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.device,pss.checkcomm,
249
         psc.qtypeid,psc.ctype,psc.psanswer,psc.optionnum
251
         psc.qtypeid,psc.ctype,psc.psanswer,psc.optionnum
250
         FROM t_paper_student_scantron pss LEFT JOIN t_paper_scantron psc ON pss.pscaid = psc.pscaid
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
 
4
 
5
     <!-- 获取学生答题卡信息 -->
5
     <!-- 获取学生答题卡信息 -->
6
     <select id="listPaperStudentScantrons" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentScantronVo">
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
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.checkcomm,
9
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.checkcomm,
9
         psc.qtypeid,psc.qtypename,psc.ctype,psc.psanswer,psc.optionnum,u.username studentname
10
         psc.qtypeid,psc.qtypename,psc.ctype,psc.psanswer,psc.optionnum,u.username studentname
10
         FROM t_paper_student_scantron pss LEFT JOIN t_user u ON pss.studentid=u.userid
11
         FROM t_paper_student_scantron pss LEFT JOIN t_user u ON pss.studentid=u.userid
14
 
15
 
15
     <!-- 获取学生答题卡待批改试题列表- -->
16
     <!-- 获取学生答题卡待批改试题列表- -->
16
     <select id="sListCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentScantronVo">
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
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.device,pss.checkcomm,
19
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.device,pss.checkcomm,
19
         psc.qtypeid,psc.qtypename,psc.ctype,psc.psanswer,u.username studentname
20
         psc.qtypeid,psc.qtypename,psc.ctype,psc.psanswer,u.username studentname
20
         FROM t_paper_student_scantron pss LEFT JOIN t_user u ON pss.studentid=u.userid
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
     <!--获取学生作业详情-->
4
     <!--获取学生作业详情-->
5
     <select id="getPaperQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
5
     <select id="getPaperQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
6
         SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
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
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename,q.hashear,q.hearfile
8
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename,q.hashear,q.hearfile
9
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
9
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
10
         ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
10
         ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
19
     <!--获取学生待批改试题列表-->
19
     <!--获取学生待批改试题列表-->
20
     <select id="listCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
20
     <select id="listCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
21
         SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
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
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
23
         ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
24
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
24
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
25
         ,(CASE WHEN q.ctype IN(7,8) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
25
         ,(CASE WHEN q.ctype IN(7,8) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
84
             <result property="psid" column="psid"></result>
84
             <result property="psid" column="psid"></result>
85
             <result property="psqid" column="psqid"></result>
85
             <result property="psqid" column="psqid"></result>
86
             <result property="device" column="device"></result>
86
             <result property="device" column="device"></result>
87
+            <result property="answertype" column="answertype"></result>
87
             <result property="useranswer" column="useranswer"></result>
88
             <result property="useranswer" column="useranswer"></result>
88
             <result property="converted" column="converted"></result>
89
             <result property="converted" column="converted"></result>
89
             <result property="useranswertext" column="useranswertext"></result>
90
             <result property="useranswertext" column="useranswertext"></result>
95
     <select id="qcorrectList" resultMap="questionResult">
96
     <select id="qcorrectList" resultMap="questionResult">
96
         select psq.qscore,psq.qorder,q.qstem,q.qoption,q.qanswer,q.qanalyze
97
         select psq.qscore,psq.qorder,q.qstem,q.qoption,q.qanswer,q.qanalyze
97
         ,psq.stuscore,psq.answered,psq.checked,psq.checkcomm,psq.psid,psq.psqid
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
         from t_paper_student_question psq left join t_question q on psq.questionid = q.questionid
100
         from t_paper_student_question psq left join t_question q on psq.questionid = q.questionid
100
         left join t_user u on psq.studentid = u.userid
101
         left join t_user u on psq.studentid = u.userid
101
         left join t_paper_student ps on psq.psid=ps.psid
102
         left join t_paper_student ps on psq.psid=ps.psid

Loading…
Cancel
Save