Browse Source

分析添加题型id(方便查询)

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

+ 3
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/reportclass/ERclassQtype.java View File

@@ -28,6 +28,9 @@ public class ERclassQtype extends BaseBean {
28 28
     //题型名称
29 29
     private String qtypename;
30 30
 
31
+    //题型id
32
+    private String qtypeid;
33
+
31 34
     //题型下试题分值
32 35
     private Double score;
33 36
 

+ 3
- 0
sexam/src/main/java/com/xhkjedu/sexam/model/reportstu/ERStudentQtype.java View File

@@ -36,6 +36,9 @@ public class ERStudentQtype extends BaseBean {
36 36
     //题型名称
37 37
     private String qtypename;
38 38
 
39
+    //题型id
40
+    private String qtypeid;
41
+
39 42
     //学生得分
40 43
     private Double stuscore;
41 44
 

+ 2
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/paper/EPaperQtypeService.java View File

@@ -294,6 +294,7 @@ public class EPaperQtypeService {
294 294
             double storerate = N_Utils.getDoubleDivideAndMulitiply(qt.getEptscore(), ePaper.getPscore());
295 295
             Map tmap = new HashMap();
296 296
             tmap.put("qtname",qt.getEptname());
297
+            tmap.put("qtid",qt.getEptid());
297 298
             tmap.put("num",qt.getEptnum());
298 299
             tmap.put("score",qt.getEptscore());
299 300
             tmap.put("srate",storerate);
@@ -613,7 +614,6 @@ public class EPaperQtypeService {
613 614
 
614 615
             for(EPaperQtype t : aq){
615 616
                 List<EPaperQtypeQuestion> qlist = t.getQuestions();
616
-
617 617
                 for(EPaperQtypeQuestion q : qlist){
618 618
                     orderlist.add(q.getQorder());
619 619
                     eptqidlist.add(q.getId());
@@ -628,6 +628,7 @@ public class EPaperQtypeService {
628 628
 
629 629
             Map tmap = new HashMap();
630 630
             tmap.put("qtname",entry.getKey());
631
+            tmap.put("qtid",aq.get(0).getEptid());
631 632
             tmap.put("num",num);
632 633
             tmap.put("score",tscore);
633 634
             tmap.put("srate",storerate);

+ 6
- 0
sexam/src/main/java/com/xhkjedu/sexam/service/report/EReportGenerateService.java View File

@@ -1178,6 +1178,7 @@ public class EReportGenerateService {
1178 1178
         for (int k = 0; k < qtypelist.size(); k++) {
1179 1179
             Map qtypemap = qtypelist.get(k);
1180 1180
             String qtypename = qtypemap.get("qtypename").toString();
1181
+            String qtypeid = qtypemap.get("qtid").toString();
1181 1182
             Double score = Double.parseDouble(qtypemap.get("score").toString());//题型下试题总分值
1182 1183
             Double srate = Double.parseDouble(qtypemap.get("srate").toString());//题型下试题分值占比
1183 1184
             Integer num = Integer.parseInt(qtypemap.get("num").toString());//题型下试题数量
@@ -1277,6 +1278,7 @@ public class EReportGenerateService {
1277 1278
                 eRclassQtype.setEpid(examPaperClassVo.getEpid());
1278 1279
                 eRclassQtype.setClassid(entry.getKey());
1279 1280
                 eRclassQtype.setQtypename(qtypename);
1281
+                eRclassQtype.setQtypeid(qtypeid);
1280 1282
                 eRclassQtype.setScore(score);
1281 1283
                 eRclassQtype.setNum(num);
1282 1284
                 eRclassQtype.setSrate(srate);
@@ -1297,6 +1299,7 @@ public class EReportGenerateService {
1297 1299
                 erStudentQtype.setSubjectid(examPaperClassVo.getSubjectid());
1298 1300
                 erStudentQtype.setEpid(examPaperClassVo.getEpid());
1299 1301
                 erStudentQtype.setQtypename(qtypename);
1302
+                erStudentQtype.setQtypeid(qtypeid);
1300 1303
                 erStudentQtype.setStusrate(N_Utils.getDoubleDivideAndMulitiply(erStudentQtype.getStuscore(), score));
1301 1304
                 stutypelist.add(erStudentQtype);
1302 1305
             }
@@ -1310,6 +1313,7 @@ public class EReportGenerateService {
1310 1313
         for (int k = 0; k < qtypelist.size(); k++) {
1311 1314
             Map qtypemap = qtypelist.get(k);
1312 1315
             String qtypename = qtypemap.get("qtypename").toString();
1316
+            String qtypeid = qtypemap.get("qtid").toString();
1313 1317
             Double score = Double.parseDouble(qtypemap.get("score").toString());//题型下试题总分值
1314 1318
             Double srate = Double.parseDouble(qtypemap.get("srate").toString());//题型下试题分值占比
1315 1319
             Integer num = Integer.parseInt(qtypemap.get("num").toString());//题型下试题数量
@@ -1461,6 +1465,7 @@ public class EReportGenerateService {
1461 1465
                 eRclassQtype.setEpid(examPaperClassVo.getEpid());
1462 1466
                 eRclassQtype.setClassid(entry.getKey());
1463 1467
                 eRclassQtype.setQtypename(qtypename);
1468
+                eRclassQtype.setQtypeid(qtypeid);
1464 1469
                 eRclassQtype.setScore(score);
1465 1470
                 eRclassQtype.setNum(num);
1466 1471
                 eRclassQtype.setSrate(srate);
@@ -1481,6 +1486,7 @@ public class EReportGenerateService {
1481 1486
                 erStudentQtype.setSubjectid(examPaperClassVo.getSubjectid());
1482 1487
                 erStudentQtype.setEpid(examPaperClassVo.getEpid());
1483 1488
                 erStudentQtype.setQtypename(qtypename);
1489
+                erStudentQtype.setQtypeid(qtypeid);
1484 1490
                 erStudentQtype.setStusrate(N_Utils.getDoubleDivideAndMulitiply(erStudentQtype.getStuscore(), score));
1485 1491
                 stutypelist.add(erStudentQtype);
1486 1492
             }

+ 1
- 1
sexam/src/main/resources/mapper/report/ERstudentMapper.xml View File

@@ -70,7 +70,7 @@
70 70
     <select id="listSubjectQtypes" resultType="java.util.Map">
71 71
         select st.qtypename,st.stuscore,st.stusrate,ct.score,ct.srate,ct.gradescore,ct.gradesrate,ct.classscore,ct.classsrate,ct.qns
72 72
         from e_rstudent_qtype st left join e_rclass_qtype ct on st.examid=ct.examid
73
-            and st.subjectid=ct.subjectid and st.qtypename=ct.qtypename
73
+            and st.subjectid=ct.subjectid and st.qtypeid=ct.qtypeid
74 74
         where st.examid=#{examid} and st.subjectid=#{subjectid} and st.studentid=#{studentid}
75 75
     </select>
76 76
     <!--学生报告-学科分析-试题分析-->

Loading…
Cancel
Save