|
@@ -1112,8 +1112,8 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> impleme
|
|
|
public StudentIndexWrapper.SummaryDto indexSummary(Long userId) {
|
|
|
Date now = new Date();
|
|
|
//获取学员本周练习时长
|
|
|
- Date monday = DateUtil.getWeekDayWithDate(now,2);
|
|
|
- Date sunday = DateUtil.getWeekDayWithDate(now,1);
|
|
|
+ Date monday = DateUtil.getWeekDayWithDate(now,Calendar.MONDAY);
|
|
|
+ Date sunday = DateUtil.getWeekDayWithDate(now,Calendar.SUNDAY);
|
|
|
StudentIndexWrapper.SummaryDto summaryDto = new StudentIndexWrapper.SummaryDto();
|
|
|
//统计学员本周练习时长
|
|
|
summaryDto.setRecordTime(sysMusicCompareRecordService.getDao().countStudentPracticeTime(userId, monday, sunday));
|