Browse Source

附件作业添加qn题号

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

+ 4
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/model/paper/TPaperScantron.java View File

@@ -30,9 +30,12 @@ public class TPaperScantron extends BaseBean {
30 30
     //处理题型
31 31
     private Integer ctype;
32 32
 
33
-    //题号
33
+    //试题排序
34 34
     private Integer psorder;
35 35
 
36
+    //题号
37
+    private String qn;
38
+
36 39
     //分值
37 40
     private Double psscore;
38 41
 

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

@@ -32,6 +32,9 @@ public class TPaperStudentScantron extends BaseBean {
32 32
     //作业学生id
33 33
     private Integer psid;
34 34
 
35
+    //题号
36
+    private String qn;
37
+
35 38
     //排序
36 39
     private Integer qorder;
37 40
 

+ 2
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/question/ZQuestionUpdateService.java View File

@@ -95,6 +95,7 @@ public class ZQuestionUpdateService {
95 95
                 q.setSnum(optionlist.size());
96 96
                 q.setSorder(0);
97 97
                 q.setQstate(1);
98
+                q.setHashear(0);
98 99
                 q.setSource(qvo.getSource());
99 100
                 q.setYear(qvo.getYear());
100 101
                 q.setRegion(qvo.getRegion());
@@ -164,6 +165,7 @@ public class ZQuestionUpdateService {
164 165
                     sq.setSnum(0);
165 166
                     sq.setSorder(i+1);
166 167
                     sq.setQstate(1);
168
+                    sq.setHashear(0);
167 169
                     sq.setSource(qvo.getSource());
168 170
                     sq.setYear(qvo.getYear());
169 171
                     sq.setRegion(qvo.getRegion());

+ 4
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paper/ScantronVo.java View File

@@ -22,9 +22,12 @@ public class ScantronVo {
22 22
     //处理题型
23 23
     private Integer ctype;
24 24
 
25
-    //题号
25
+    //试题排序
26 26
     private Integer psorder;
27 27
 
28
+    //题号
29
+    private String qn;
30
+
28 31
     //分值
29 32
     private Double psscore;
30 33
 

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

@@ -28,6 +28,9 @@ public class PaperStudentScantronVo {
28 28
     //作业学生id
29 29
     private Integer psid;
30 30
 
31
+    //题号
32
+    private String qn;
33
+
31 34
     //排序
32 35
     private Integer qorder;
33 36
 

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

@@ -232,6 +232,7 @@
232 232
             <result property="studentid" column="studentid"></result>
233 233
             <result property="psid" column="psid"></result>
234 234
             <result property="pscaid" column="pscaid"></result>
235
+            <result property="qn" column="qn"></result>
235 236
             <result property="qorder" column="qorder"></result>
236 237
             <result property="answered" column="answered"></result>
237 238
             <result property="answertype" column="answertype"></result>
@@ -256,7 +257,7 @@
256 257
     <!--答题卡作业统计 按人详情 题型列表-->
257 258
     <select id="listPeopleSDetailAnalyze" resultMap="typeSQuestion">
258 259
         SELECT psq.qtypename,psq.pstorder ptorder,psq.pstscore ptscore,psq.pstnum ptnum,
259
-        pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qorder,pss.answered,pss.answertype,pss.useranswer,pss.converted,pss.useranswertext,pss.useranswertxt,
260
+        pss.pssid,pss.paperid,pss.studentid,pss.psid,pss.qn,pss.qorder,pss.answered,pss.answertype,pss.useranswer,pss.converted,pss.useranswertext,pss.useranswertxt,
260 261
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.checkcomm,
261 262
         psc.qtypeid,psc.ctype,psc.psanswer,psc.optionnum
262 263
         FROM t_paper_student_scantron pss LEFT JOIN t_paper_scantron psc ON pss.pscaid = psc.pscaid

+ 4
- 2
sstudy/src/main/resources/mapper/paper/PaperScantronQtypeMapper.xml View File

@@ -19,6 +19,7 @@
19 19
             <result property="qtypename" column="qtypename"></result>
20 20
             <result property="ctype" column="ctype"></result>
21 21
             <result property="psorder" column="psorder"></result>
22
+            <result property="qn" column="qn"></result>
22 23
             <result property="psscore" column="psscore"></result>
23 24
             <result property="psanswer" column="psanswer"></result>
24 25
             <result property="optionnum" column="optionnum"></result>
@@ -28,7 +29,7 @@
28 29
     <!-- 获取题型以及题型下试题 -->
29 30
     <select id="listQtypeScans" resultMap="qtypeSacn">
30 31
         SELECT psq.psqtypeid,psq.qtypeid,psq.qtypename,psq.pstorder,psq.pstscore,psq.pstnum,ps.pscaid,
31
-        ps.qtypeid,ps.qtypename,ps.ctype,ps.psorder,ps.psscore,ps.psanswer,ps.optionnum
32
+        ps.qtypeid,ps.qtypename,ps.ctype,ps.psorder,ps.qn,ps.psscore,ps.psanswer,ps.optionnum
32 33
         FROM t_paper_scantron_qtype psq LEFT JOIN t_paper_scantron ps ON psq.psqtypeid=ps.psqtypeid
33 34
         WHERE psq.paperid=#{paperid} ORDER BY psq.pstorder,ps.psorder
34 35
     </select>
@@ -46,6 +47,7 @@
46 47
             <result property="qtypename" column="qtypename"></result>
47 48
             <result property="ctype" column="ctype"></result>
48 49
             <result property="psorder" column="psorder"></result>
50
+            <result property="qn" column="qn"></result>
49 51
             <result property="psscore" column="psscore"></result>
50 52
             <result property="psanswer" column="psanswer"></result>
51 53
             <result property="optionnum" column="optionnum"></result>
@@ -55,7 +57,7 @@
55 57
     <!-- 获取题型以及题型下试题用于处理分析 -->
56 58
     <select id="listQtypeScansForAnalyze" resultMap="qtypeSacnForAna">
57 59
         SELECT psq.psqtypeid,psq.qtypeid,psq.qtypename,psq.pstorder,psq.pstscore,psq.pstnum,ps.pscaid,
58
-               ps.qtypeid,ps.qtypename,ps.ctype,ps.psorder,ps.psscore,ps.psanswer,ps.optionnum
60
+               ps.qtypeid,ps.qtypename,ps.ctype,ps.psorder,ps.pn,ps.psscore,ps.psanswer,ps.optionnum
59 61
         FROM t_paper_scantron_qtype psq LEFT JOIN t_paper_scantron ps ON psq.psqtypeid=ps.psqtypeid
60 62
         WHERE psq.paperid=#{paperid} ORDER BY psq.pstorder,ps.psorder
61 63
     </select>

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

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

Loading…
Cancel
Save