|
@@ -338,6 +338,7 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
public UserPlanVo listPlan(UserPlanEditBo bo) throws ParseException {
|
|
public UserPlanVo listPlan(UserPlanEditBo bo) throws ParseException {
|
|
UserPlanVo userPlanVo = new UserPlanVo();
|
|
UserPlanVo userPlanVo = new UserPlanVo();
|
|
List<CalendarStudyVo> clCalendarStudyVos = findDates(bo.getStartTime(),bo.getEndTime());
|
|
List<CalendarStudyVo> clCalendarStudyVos = findDates(bo.getStartTime(),bo.getEndTime());
|
|
|
|
+ Long secAll = 0L;
|
|
for (Long aLong : bo.getGoodsId()) {
|
|
for (Long aLong : bo.getGoodsId()) {
|
|
//最近考试时间七天前到现在的天数,学习视频时长
|
|
//最近考试时间七天前到现在的天数,学习视频时长
|
|
Date date1 = new Date(bo.getEndTime() * 1000L);
|
|
Date date1 = new Date(bo.getEndTime() * 1000L);
|
|
@@ -353,6 +354,7 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
}
|
|
}
|
|
//计算每天需要学习多少节课
|
|
//计算每天需要学习多少节课
|
|
int Sec = (int) Math.ceil((double) allNum / dutyDays);
|
|
int Sec = (int) Math.ceil((double) allNum / dutyDays);
|
|
|
|
+ secAll+=Sec;
|
|
for (CalendarStudyVo clCalendarStudyVo : clCalendarStudyVos) {
|
|
for (CalendarStudyVo clCalendarStudyVo : clCalendarStudyVos) {
|
|
for (DayStudyVo dayStudyVo : clCalendarStudyVo.getDayStudyList()) {
|
|
for (DayStudyVo dayStudyVo : clCalendarStudyVo.getDayStudyList()) {
|
|
if (Arrays.asList(bo.getStudyCount()).contains(dayStudyVo.getStudyDay())){
|
|
if (Arrays.asList(bo.getStudyCount()).contains(dayStudyVo.getStudyDay())){
|
|
@@ -382,7 +384,7 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
}
|
|
}
|
|
}
|
|
}
|
|
userPlanVo.setCalendarStudyVo(clCalendarStudyVos);
|
|
userPlanVo.setCalendarStudyVo(clCalendarStudyVos);
|
|
- userPlanVo.setStudyCourseKnob(clCalendarStudyVos.get(0).getDayStudyList().get(0).getStudyCourseKnob());
|
|
|
|
|
|
+ userPlanVo.setStudyCourseKnob(secAll);
|
|
return userPlanVo;
|
|
return userPlanVo;
|
|
}
|
|
}
|
|
|
|
|