|
@@ -507,6 +507,8 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
for (Long seLong : seLongs) {
|
|
|
allNum += seLong;
|
|
|
}
|
|
|
+ System.out.println("总节数"+allNum);
|
|
|
+ System.out.println("学习天数"+dutyDays);
|
|
|
//计算每天需要学习多少节课
|
|
|
int Sec = (int) Math.ceil((double) allNum / dutyDays);
|
|
|
secAll+=Sec;
|
|
@@ -622,12 +624,14 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
c.setTime(endDate);
|
|
|
c.add(Calendar.DATE, - Convert.toInt(studyDay));
|
|
|
endDate = c.getTime();
|
|
|
-
|
|
|
+ System.out.println(startDateStr.getTime()+"开始天数");
|
|
|
+ System.out.println(endDateStr.getTime()+"开始天数");
|
|
|
Date startDate = startDateStr;
|
|
|
int day = startDate.getDay();
|
|
|
while (startDate.compareTo(endDate) <= 0) {
|
|
|
for (Long integer : longs) {
|
|
|
if (startDate.getDay() == integer) {
|
|
|
+ System.out.println(startDate.getDay()+"号数");
|
|
|
result++;
|
|
|
break;
|
|
|
}
|