|
|
@@ -383,8 +383,30 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<CalendarStudyVo> userPlanSeven(UserPlanQueryBo bo) {
|
|
|
+ public UserPlanVo userPlanSeven(UserPlanQueryBo bo) {
|
|
|
+ UserPlan userPlan = baseMapper.selectByUserPlan(bo).get(0);
|
|
|
+ UserPlanVo userPlanVos = new UserPlanVo();
|
|
|
+ Calendar cal = Calendar.getInstance();
|
|
|
+
|
|
|
+ //得到日历日期
|
|
|
+ List<CalendarStudyVo> calendarStudyVos = JSONObject.parseArray(userPlan.getSchedule(), CalendarStudyVo.class);
|
|
|
+
|
|
|
+
|
|
|
+ //获得计划的课程
|
|
|
+ List<UserPlanCource> userPlanClsList = baseMapper.selectCourse(userPlan.getPlanId());
|
|
|
+ //初始化需要得到的数组
|
|
|
+ Integer[] array = new Integer[userPlanClsList.size()];
|
|
|
+ //使用for循环得到数组
|
|
|
+ for(int i = 0; i < userPlanClsList.size();i++){
|
|
|
+ array[i] = Convert.toInt(userPlanClsList.get(i).getSourceId());
|
|
|
+ }
|
|
|
+ bo.setCourseId(array);
|
|
|
+ List<CoursePlanVo> coursePlanVo = baseMapper.selectByListCourse(bo);
|
|
|
+
|
|
|
+
|
|
|
return null;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private UserPlanVo generateSelfBo(UserPlanQueryBo bo) throws ParseException {
|