Przeglądaj źródła

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

tags/正式版本
雍文秀 2 lat temu
rodzic
commit
4deccda303

+ 3
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/paperstudent/EPaperStudent.java Wyświetl plik

@@ -22,6 +22,9 @@ public class EPaperStudent extends BaseBean {
22 22
     //试卷id
23 23
     private Integer epid;
24 24
 
25
+    //科目id
26
+    private String subjectid;
27
+
25 28
     //班级id
26 29
     private Integer classid;
27 30
 

+ 2
- 0
sexam/src/main/java/com/xhkjedu/sexam/service/exam/EBaseService.java Wyświetl plik

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

+ 1
- 1
sexam/src/main/resources/mapper/paper/EPaperMapper.xml Wyświetl plik

@@ -80,7 +80,7 @@
80 80
     </select>
81 81
     <!--获取考试试卷题量和分值-->
82 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 84
         from e_paper where examid=#{examid}
85 85
     </select>
86 86
     <!--修改批阅设置-->

Ładowanie…
Anuluj
Zapisz