Browse Source

报到率增加

dzx 6 months ago
parent
commit
3668b9f4d7

+ 6 - 0
src/main/java/com/xjrsoft/module/student/controller/StudentReportRecordController.java

@@ -248,6 +248,12 @@ public class StudentReportRecordController {
             );
         }
         statisticsVo.setGraduatedUniversityList(graduatedUniversityList);
+
+        BigDecimal divide = BigDecimal.ZERO;
+        if( statisticsVo.getAllCount() != 0){
+            divide = BigDecimal.valueOf(statisticsVo.getArrivedCount()).divide(BigDecimal.valueOf(statisticsVo.getAllCount()), 4, RoundingMode.HALF_UP);
+        }
+        statisticsVo.setReportRate(divide.doubleValue());
         return RT.ok(statisticsVo);
     }