|
@@ -1591,6 +1591,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
for (ClassPeriodUserVo classPeriodUserVo : classPeriodUserVos) {
|
|
|
Long secLong = 0L;
|
|
|
Long studyLong = 0L;
|
|
|
+ Long finishSectionDuration = 0L;
|
|
|
SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
subjectStudyRecordQueryBo.setGoodsId(classPeriodUserVo.getGoodsId());
|
|
|
subjectStudyRecordQueryBo.setUserId(bo.getUserId());
|
|
@@ -1600,7 +1601,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
-
|
|
|
+ finishSectionDuration = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordTime().toString())).longValue();
|
|
|
}
|
|
|
//BigDecimal divide = new BigDecimal(studyLong.toString()).divide(new BigDecimal(secLong.toString()),2,BigDecimal.ROUND_HALF_UP);
|
|
|
//classGradeStudentVo.setStudyNum(divide.multiply(new BigDecimal("100")).longValue());
|
|
@@ -1608,6 +1609,8 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
classPeriodUserVo.setSecAllNum(secLong);
|
|
|
//学习节数
|
|
|
classPeriodUserVo.setStuAllNum(studyLong);
|
|
|
+ //已学习秒数
|
|
|
+ classPeriodUserVo.setFinishSectionDuration(finishSectionDuration);
|
|
|
classPeriodUserVo.setPending(classPeriodUserVo.getSecAllNum() - classPeriodUserVo.getPass() - classPeriodUserVo.getCheat());
|
|
|
classPeriodUserVo.setExamPending(classPeriodUserVo.getExamNum() - classPeriodUserVo.getExamPass() - classPeriodUserVo.getExamCheat());
|
|
|
//當前班級學員審核狀態 -1不可审核 0待審 1未通过 2通过
|