Browse Source

考试报告四率计算和缺考人数完善

tags/正式3.13.6
雍文秀 10 months ago
parent
commit
46ae170456

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

@@ -450,7 +450,7 @@ public class EReportGenerateService {
450 450
             if (stuzero.equals(0)) {//0分学生不参与统计
451 451
                 rstudentList2 = rstudentList.stream().filter(s -> s.getScore() > 0).collect(Collectors.toList());
452 452
             } else {
453
-                rstudentList2 = list;
453
+                rstudentList2 = rstudentList;
454 454
             }
455 455
             DoubleSummaryStatistics claStatistics = rstudentList2.stream().mapToDouble(s -> s.getScore()).summaryStatistics();
456 456
             double clamaxscore = N_Utils.handleInfinity(claStatistics.getMax());
@@ -477,7 +477,7 @@ public class EReportGenerateService {
477 477
             sknum = rstudentList.stream().filter(l -> l.getSstate() == 2)
478 478
                     .map(l -> l.getStudentid()).distinct().collect(Collectors.toList()).size();
479 479
             rc.setStunum(sknum);//实考人数
480
-            rc.setMissnum(fbstunum - sknum);//缺考人数=计划人数-实考人数
480
+            rc.setMissnum(rstudentList.size() - sknum);//缺考人数=计划人数-实考人数
481 481
             scores = rstudentList.stream().map(l -> l.getScore()).collect(Collectors.toList());
482 482
             stunum = rstudentList2.size();//参与统计学生人数
483 483
             yxnum = rstudentList2.stream().filter(l -> l.getScore().compareTo(yxscore) != -1)

Loading…
Cancel
Save