| | |
| | | //学习记录 |
| | | StudyRecord studyRecord = studyRecordMapper.getByStudentId(userId); |
| | | if (studyRecord != null) { |
| | | Long studyTime = studyRecord.getStudyTime(); |
| | | BigDecimal studyTimeVo = new BigDecimal(studyTime).divide(new BigDecimal(3600), 1, RoundingMode.HALF_UP); |
| | | vo.setLastTime(studyRecord.getLastTime()); |
| | | vo.setStudyTime(studyRecord.getStudyTime()); |
| | | vo.setStudyTime(studyTimeVo); |
| | | vo.setMeetCount(studyRecord.getMeetCount()); |
| | | }else { |
| | | vo.setStudyTime(0L); |
| | | vo.setStudyTime(BigDecimal.ZERO); |
| | | vo.setMeetCount(0); |
| | | } |
| | | //平均分 |