Browse Source

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

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

+ 2
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/paperstudent/EPaperStudentService.java View File

8
 import com.xhkjedu.sexam.mapper.paperstudent.EScanbatchMapper;
8
 import com.xhkjedu.sexam.mapper.paperstudent.EScanbatchMapper;
9
 import com.xhkjedu.sexam.mapper.paperstudent.EScanerrorMapper;
9
 import com.xhkjedu.sexam.mapper.paperstudent.EScanerrorMapper;
10
 import com.xhkjedu.sexam.mapper.system.UserMapper;
10
 import com.xhkjedu.sexam.mapper.system.UserMapper;
11
-import com.xhkjedu.sexam.model.paper.EPaperFile;
12
 import com.xhkjedu.sexam.model.paper.EPaperQtype;
11
 import com.xhkjedu.sexam.model.paper.EPaperQtype;
13
 import com.xhkjedu.sexam.model.paper.EPaperQtypeQuestion;
12
 import com.xhkjedu.sexam.model.paper.EPaperQtypeQuestion;
14
 import com.xhkjedu.sexam.model.paperstudent.EPaperStudent;
13
 import com.xhkjedu.sexam.model.paperstudent.EPaperStudent;
149
             sq.setChecked(0);
148
             sq.setChecked(0);
150
             sq.setStuscore(0.0);
149
             sq.setStuscore(0.0);
151
             sq.setCosttime(0);
150
             sq.setCosttime(0);
151
+            sq.setGood(0);
152
+            sq.setBad(0);
152
             psqlist.add(sq);
153
             psqlist.add(sq);
153
         }
154
         }
154
         ePaperStudentQuestionMapper.insertList(psqlist);//保存试卷
155
         ePaperStudentQuestionMapper.insertList(psqlist);//保存试卷

+ 2
- 0
sexam/src/main/java/com/xhkjedu/sexam/vo/paper/EPaperSQuestionVo.java View File

12
 public class EPaperSQuestionVo {
12
 public class EPaperSQuestionVo {
13
     private Integer epsid;//试卷学生id
13
     private Integer epsid;//试卷学生id
14
     private Integer epsqid;//试卷学生试题id
14
     private Integer epsqid;//试卷学生试题id
15
+    private Integer answertype;//答案类型1选择题、图片2纯文本
15
     private String stuanswer;//学生答案
16
     private String stuanswer;//学生答案
17
+    private String stuanswertxt;//学生答案(纯文本)
16
     private String qn;//试题题号
18
     private String qn;//试题题号
17
     private Integer eptqid;//试题排序
19
     private Integer eptqid;//试题排序
18
     private double qscore;//分值
20
     private double qscore;//分值

+ 5
- 3
sexam/src/main/resources/mapper/paper/EPaperCorrectTeacherMapper.xml View File

49
     </select>
49
     </select>
50
     <!--随机获取一条待批阅试题-->
50
     <!--随机获取一条待批阅试题-->
51
     <select id="getCorrectQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">
51
     <select id="getCorrectQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">
52
-        select psq.epsqid,psq.stuanswer,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
52
+        select psq.epsqid,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
53
+        ,psq.answertype,psq.stuanswer,psq.stuanswertxt
53
         from e_paper_student_question psq where psq.eptqid=#{eptqid}
54
         from e_paper_student_question psq where psq.eptqid=#{eptqid}
54
         and psq.answered=1 and (psq.checked=0 or (psq.checked=1 and psq.checkid=#{teacherid}))
55
         and psq.answered=1 and (psq.checked=0 or (psq.checked=1 and psq.checkid=#{teacherid}))
55
         <if test="classids!=null and classids!=''">
56
         <if test="classids!=null and classids!=''">
69
     </update>
70
     </update>
70
     <!--获取上一份批阅试题-->
71
     <!--获取上一份批阅试题-->
71
     <select id="getPreQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">
72
     <select id="getPreQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">
72
-        select psq.epsqid,psq.stuanswer,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
73
+        select psq.epsqid,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
74
+        ,psq.answertype,psq.stuanswer,psq.stuanswertxt
73
         from e_paper_student_question psq where psq.eptqid=#{eptqid} and psq.checked=2 and psq.checkid=#{teacherid}
75
         from e_paper_student_question psq where psq.eptqid=#{eptqid} and psq.checked=2 and psq.checkid=#{teacherid}
74
         order by psq.checktime desc limit 1
76
         order by psq.checktime desc limit 1
75
     </select>
77
     </select>
87
         ,checkid=#{psq.checkid},checktime=unix_timestamp()
89
         ,checkid=#{psq.checkid},checktime=unix_timestamp()
88
         ,good=#{psq.good},bad=#{psq.bad}
90
         ,good=#{psq.good},bad=#{psq.bad}
89
         <if test="psq.stuanswer!=null and psq.stuanswer!=''">
91
         <if test="psq.stuanswer!=null and psq.stuanswer!=''">
90
-            and stuanswer=#{psq.stuanswer}
92
+            ,stuanswer=#{psq.stuanswer}
91
         </if>
93
         </if>
92
         where epsqid=#{psq.epsqid}
94
         where epsqid=#{psq.epsqid}
93
     </update>
95
     </update>

+ 1
- 1
sexam/src/main/resources/mapper/paperstudent/EPaperStudentMapper.xml View File

5
     <!--学生进行中考试列表-->
5
     <!--学生进行中考试列表-->
6
     <select id="listExamPapersForStudent" resultType="java.util.Map">
6
     <select id="listExamPapersForStudent" resultType="java.util.Map">
7
         select eps.epsid, es.esid,es.examid,es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,
7
         select eps.epsid, es.esid,es.examid,es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,
8
-        e.examname,e.gradeid,e.examtype,ep.epid,ep.ptype
8
+        e.examname,e.gradeid,e.examtype,ep.epid,ep.ptype,eps.sstate
9
         from e_paper_student eps left join e_subject es on eps.esid=es.esid
9
         from e_paper_student eps left join e_subject es on eps.esid=es.esid
10
          left join e_paper ep on eps.epid=ep.epid left join e_base e on eps.examid=e.examid
10
          left join e_paper ep on eps.epid=ep.epid left join e_base e on eps.examid=e.examid
11
         where e.deleted=1 and e.exammode=1 and eps.studentid=#{studentid} and e.examstate=1 GROUP BY eps.epsid
11
         where e.deleted=1 and e.exammode=1 and eps.studentid=#{studentid} and e.examstate=1 GROUP BY eps.epsid

Loading…
Cancel
Save