|
@@ -4171,7 +4171,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
LocalDate currentExpiredDay = courseStartDay.plusMonths(practiceGroup.getBuyMonths());
|
|
|
Date courseExpiredDateTemp=Date.from(currentExpiredDay.atStartOfDay(DateUtil.zoneId).toInstant());
|
|
|
if(coursesExpireDate.before(courseExpiredDateTemp)){
|
|
|
- throw new BizException("课程结束时间不得早于,{}", DateUtil.dateToString(coursesExpireDate, "yyyy年MM月dd日"));
|
|
|
+ throw new BizException("课程结束时间不得早于,{}", DateUtil.dateToString(courseExpiredDateTemp, "yyyy年MM月dd日"));
|
|
|
}
|
|
|
|
|
|
practiceGroup.setCoursesExpireDate(DateUtil.addSeconds(DateUtil.addDays(coursesExpireDate, 1),-1));
|