|
|
@@ -208,7 +208,6 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
|
|
|
//最近考试时间七天前到现在的天数,学习视频时长
|
|
|
Date date1 = new Date(examArrangementTimeVo.getStartTime()*1000L);
|
|
|
- System.out.println(date1.getTime());
|
|
|
//获得相隔天数
|
|
|
Long[] longs ={1L,2L,3L,4L,5L,6L};
|
|
|
int dutyDays = getDutyDays(new Date(), date1,longs,7L);
|
|
|
@@ -246,18 +245,18 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
if (sectionNum == 0){
|
|
|
break;
|
|
|
}
|
|
|
- if (Sec > sectionNum) {
|
|
|
+ if (Sec < sectionNum) {
|
|
|
dayStudyVo.setStudyCourseKnob(Convert.toLong(Sec));
|
|
|
sectionNum = sectionNum-Sec;
|
|
|
- }else if (Sec <= sectionNum){
|
|
|
+ }else if (Sec >= sectionNum){
|
|
|
dayStudyVo.setStudyCourseKnob(Convert.toLong(sectionNum));
|
|
|
sectionNum = 0;
|
|
|
}
|
|
|
}else if(month != (cal.get(Calendar.MONTH) + 1) && ifTrue(dayStudyVo.getStudyDay(),longs)){
|
|
|
- if (Sec > sectionNum) {
|
|
|
+ if (Sec < sectionNum) {
|
|
|
dayStudyVo.setStudyCourseKnob(Convert.toLong(Sec));
|
|
|
sectionNum = sectionNum-Sec;
|
|
|
- }else if (Sec <= sectionNum){
|
|
|
+ }else if (Sec >= sectionNum){
|
|
|
dayStudyVo.setStudyCourseKnob(Convert.toLong(sectionNum));
|
|
|
sectionNum = 0;
|
|
|
}
|
|
|
@@ -275,6 +274,7 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
UserPlanVo userPlanVo = new UserPlanVo();
|
|
|
userPlanVo.setCalendarStudyVo(calendarStudyVos);
|
|
|
List<CoursePlanVo> coursePlanVos = new ArrayList<>();
|
|
|
+
|
|
|
coursePlanVos.add(coursePlanVo);
|
|
|
userPlanVo.setCoursePlanVo(coursePlanVos);
|
|
|
return userPlanVo;
|