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
     //处理题型
30
     //处理题型
31
     private Integer ctype;
31
     private Integer ctype;
32
 
32
 
33
-    //题号
33
+    //试题排序
34
     private Integer psorder;
34
     private Integer psorder;
35
 
35
 
36
+    //题号
37
+    private String qn;
38
+
36
     //分值
39
     //分值
37
     private Double psscore;
40
     private Double psscore;
38
 
41
 

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

32
     //作业学生id
32
     //作业学生id
33
     private Integer psid;
33
     private Integer psid;
34
 
34
 
35
+    //题号
36
+    private String qn;
37
+
35
     //排序
38
     //排序
36
     private Integer qorder;
39
     private Integer qorder;
37
 
40
 

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

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

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

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

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

28
     //作业学生id
28
     //作业学生id
29
     private Integer psid;
29
     private Integer psid;
30
 
30
 
31
+    //题号
32
+    private String qn;
33
+
31
     //排序
34
     //排序
32
     private Integer qorder;
35
     private Integer qorder;
33
 
36
 

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

232
             <result property="studentid" column="studentid"></result>
232
             <result property="studentid" column="studentid"></result>
233
             <result property="psid" column="psid"></result>
233
             <result property="psid" column="psid"></result>
234
             <result property="pscaid" column="pscaid"></result>
234
             <result property="pscaid" column="pscaid"></result>
235
+            <result property="qn" column="qn"></result>
235
             <result property="qorder" column="qorder"></result>
236
             <result property="qorder" column="qorder"></result>
236
             <result property="answered" column="answered"></result>
237
             <result property="answered" column="answered"></result>
237
             <result property="answertype" column="answertype"></result>
238
             <result property="answertype" column="answertype"></result>
256
     <!--答题卡作业统计 按人详情 题型列表-->
257
     <!--答题卡作业统计 按人详情 题型列表-->
257
     <select id="listPeopleSDetailAnalyze" resultMap="typeSQuestion">
258
     <select id="listPeopleSDetailAnalyze" resultMap="typeSQuestion">
258
         SELECT psq.qtypename,psq.pstorder ptorder,psq.pstscore ptscore,psq.pstnum ptnum,
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
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.checkcomm,
261
         pss.answertime,pss.costtime,pss.checked,pss.stuscore,pss.qscore,pss.pscaid,pss.checkcomm,
261
         psc.qtypeid,psc.ctype,psc.psanswer,psc.optionnum
262
         psc.qtypeid,psc.ctype,psc.psanswer,psc.optionnum
262
         FROM t_paper_student_scantron pss LEFT JOIN t_paper_scantron psc ON pss.pscaid = psc.pscaid
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
             <result property="qtypename" column="qtypename"></result>
19
             <result property="qtypename" column="qtypename"></result>
20
             <result property="ctype" column="ctype"></result>
20
             <result property="ctype" column="ctype"></result>
21
             <result property="psorder" column="psorder"></result>
21
             <result property="psorder" column="psorder"></result>
22
+            <result property="qn" column="qn"></result>
22
             <result property="psscore" column="psscore"></result>
23
             <result property="psscore" column="psscore"></result>
23
             <result property="psanswer" column="psanswer"></result>
24
             <result property="psanswer" column="psanswer"></result>
24
             <result property="optionnum" column="optionnum"></result>
25
             <result property="optionnum" column="optionnum"></result>
28
     <!-- 获取题型以及题型下试题 -->
29
     <!-- 获取题型以及题型下试题 -->
29
     <select id="listQtypeScans" resultMap="qtypeSacn">
30
     <select id="listQtypeScans" resultMap="qtypeSacn">
30
         SELECT psq.psqtypeid,psq.qtypeid,psq.qtypename,psq.pstorder,psq.pstscore,psq.pstnum,ps.pscaid,
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
         FROM t_paper_scantron_qtype psq LEFT JOIN t_paper_scantron ps ON psq.psqtypeid=ps.psqtypeid
33
         FROM t_paper_scantron_qtype psq LEFT JOIN t_paper_scantron ps ON psq.psqtypeid=ps.psqtypeid
33
         WHERE psq.paperid=#{paperid} ORDER BY psq.pstorder,ps.psorder
34
         WHERE psq.paperid=#{paperid} ORDER BY psq.pstorder,ps.psorder
34
     </select>
35
     </select>
46
             <result property="qtypename" column="qtypename"></result>
47
             <result property="qtypename" column="qtypename"></result>
47
             <result property="ctype" column="ctype"></result>
48
             <result property="ctype" column="ctype"></result>
48
             <result property="psorder" column="psorder"></result>
49
             <result property="psorder" column="psorder"></result>
50
+            <result property="qn" column="qn"></result>
49
             <result property="psscore" column="psscore"></result>
51
             <result property="psscore" column="psscore"></result>
50
             <result property="psanswer" column="psanswer"></result>
52
             <result property="psanswer" column="psanswer"></result>
51
             <result property="optionnum" column="optionnum"></result>
53
             <result property="optionnum" column="optionnum"></result>
55
     <!-- 获取题型以及题型下试题用于处理分析 -->
57
     <!-- 获取题型以及题型下试题用于处理分析 -->
56
     <select id="listQtypeScansForAnalyze" resultMap="qtypeSacnForAna">
58
     <select id="listQtypeScansForAnalyze" resultMap="qtypeSacnForAna">
57
         SELECT psq.psqtypeid,psq.qtypeid,psq.qtypename,psq.pstorder,psq.pstscore,psq.pstnum,ps.pscaid,
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
         FROM t_paper_scantron_qtype psq LEFT JOIN t_paper_scantron ps ON psq.psqtypeid=ps.psqtypeid
61
         FROM t_paper_scantron_qtype psq LEFT JOIN t_paper_scantron ps ON psq.psqtypeid=ps.psqtypeid
60
         WHERE psq.paperid=#{paperid} ORDER BY psq.pstorder,ps.psorder
62
         WHERE psq.paperid=#{paperid} ORDER BY psq.pstorder,ps.psorder
61
     </select>
63
     </select>

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

Loading…
Cancel
Save