Browse Source

发布考试 试卷学生关联信息保存科目id

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

+ 3
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/paperstudent/EPaperStudent.java View File

22
     //试卷id
22
     //试卷id
23
     private Integer epid;
23
     private Integer epid;
24
 
24
 
25
+    //科目id
26
+    private String subjectid;
27
+
25
     //班级id
28
     //班级id
26
     private Integer classid;
29
     private Integer classid;
27
 
30
 

+ 2
- 0
sexam/src/main/java/com/xhkjedu/sexam/service/exam/EBaseService.java View File

181
             Integer epid = paper.getEpid();
181
             Integer epid = paper.getEpid();
182
             Integer pnum = paper.getPnum();
182
             Integer pnum = paper.getPnum();
183
             Double pscore = paper.getPscore();
183
             Double pscore = paper.getPscore();
184
+            String subjectid = paper.getSubjectid();
184
             for (UserVo student : students) {
185
             for (UserVo student : students) {
185
                 EPaperStudent es = new EPaperStudent();
186
                 EPaperStudent es = new EPaperStudent();
186
                 es.setExamid(examid);
187
                 es.setExamid(examid);
187
                 es.setEsid(esid);
188
                 es.setEsid(esid);
188
                 es.setEpid(epid);
189
                 es.setEpid(epid);
190
+                es.setSubjectid(subjectid);
189
                 es.setClassid(student.getClassid());
191
                 es.setClassid(student.getClassid());
190
                 es.setStudentid(student.getUserid());
192
                 es.setStudentid(student.getUserid());
191
                 es.setSstate(0);
193
                 es.setSstate(0);

+ 1
- 1
sexam/src/main/resources/mapper/paper/EPaperMapper.xml View File

80
     </select>
80
     </select>
81
     <!--获取考试试卷题量和分值-->
81
     <!--获取考试试卷题量和分值-->
82
     <select id="listNumAndScoreByExamId" resultType="com.xhkjedu.sexam.model.paper.EPaper">
82
     <select id="listNumAndScoreByExamId" resultType="com.xhkjedu.sexam.model.paper.EPaper">
83
-        select esid,epid,pnum,pscore
83
+        select esid,epid,pnum,pscore,subjectid
84
         from e_paper where examid=#{examid}
84
         from e_paper where examid=#{examid}
85
     </select>
85
     </select>
86
     <!--修改批阅设置-->
86
     <!--修改批阅设置-->

Loading…
Cancel
Save