|
@@ -202,6 +202,8 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private UserPlanVo generateSelf(UserPlanQueryBo bo) throws ParseException {
|
|
private UserPlanVo generateSelf(UserPlanQueryBo bo) throws ParseException {
|
|
|
|
|
+ UserPlanVo userPlanVo = new UserPlanVo();
|
|
|
|
|
+
|
|
|
//获得当前课程最近一个考试计划 考生考生计划或者最近考试计划
|
|
//获得当前课程最近一个考试计划 考生考生计划或者最近考试计划
|
|
|
CoursePlanVo coursePlanVo = baseMapper.selectByCourse(bo);
|
|
CoursePlanVo coursePlanVo = baseMapper.selectByCourse(bo);
|
|
|
ExamArrangementTimeVo examArrangementTimeVo = baseMapper.selectByExam(coursePlanVo.getCategoryId());
|
|
ExamArrangementTimeVo examArrangementTimeVo = baseMapper.selectByExam(coursePlanVo.getCategoryId());
|
|
@@ -217,6 +219,7 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
|
|
|
|
|
//总节数
|
|
//总节数
|
|
|
Integer sectionNum = coursePlanVo.getSectionNum();
|
|
Integer sectionNum = coursePlanVo.getSectionNum();
|
|
|
|
|
+ userPlanVo.setPitchNum(Convert.toLong(sectionNum));
|
|
|
|
|
|
|
|
//获得今天日期,将每天节数写入
|
|
//获得今天日期,将每天节数写入
|
|
|
List<CalendarStudyVo> calendarStudyVos = new ArrayList<>();
|
|
List<CalendarStudyVo> calendarStudyVos = new ArrayList<>();
|
|
@@ -271,10 +274,13 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
|
|
|
|
|
//查询是否解锁题库
|
|
//查询是否解锁题库
|
|
|
|
|
|
|
|
- UserPlanVo userPlanVo = new UserPlanVo();
|
|
|
|
|
|
|
+
|
|
|
userPlanVo.setCalendarStudyVo(calendarStudyVos);
|
|
userPlanVo.setCalendarStudyVo(calendarStudyVos);
|
|
|
List<CoursePlanVo> coursePlanVos = new ArrayList<>();
|
|
List<CoursePlanVo> coursePlanVos = new ArrayList<>();
|
|
|
|
|
+ userPlanVo.setStudyCount(longs);
|
|
|
|
|
+ userPlanVo.setUserId(bo.getUserId());
|
|
|
|
|
|
|
|
|
|
+ userPlanVo.setStudyDay(0L);
|
|
|
coursePlanVos.add(coursePlanVo);
|
|
coursePlanVos.add(coursePlanVo);
|
|
|
userPlanVo.setCoursePlanVo(coursePlanVos);
|
|
userPlanVo.setCoursePlanVo(coursePlanVos);
|
|
|
return userPlanVo;
|
|
return userPlanVo;
|