|
|
@@ -261,6 +261,7 @@ public class FsUserCoursePeriodDaysServiceImpl extends ServiceImpl<FsUserCourseP
|
|
|
LocalDate expectedDayDate = baseDate.plusDays(i);
|
|
|
LocalDateTime expectedStartDateTime = baseStartDateTime.plusDays(i);
|
|
|
LocalDateTime expectedEndDateTime = baseEndDateTime.plusDays(i);
|
|
|
+ LocalDateTime expectedLastJoinTime = baseEndDateTime.plusDays(i);
|
|
|
|
|
|
// 如果当前日期不等于期望日期,则需要更新
|
|
|
if(!expectedDayDate.equals(currentItem.getDayDate()) || !expectedStartDateTime.equals(currentItem.getStartDateTime()) || !expectedEndDateTime.equals(currentItem.getEndDateTime())) {
|
|
|
@@ -269,6 +270,7 @@ public class FsUserCoursePeriodDaysServiceImpl extends ServiceImpl<FsUserCourseP
|
|
|
updateItem.setDayDate(expectedDayDate);
|
|
|
updateItem.setStartDateTime(expectedStartDateTime);
|
|
|
updateItem.setEndDateTime(expectedEndDateTime);
|
|
|
+ updateItem.setLastJoinTime(expectedLastJoinTime);
|
|
|
toUpdate.add(updateItem);
|
|
|
}
|
|
|
}
|