|
@@ -4950,14 +4950,14 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if(Objects.nonNull(maxCourseTime)&&coursesExpireDate.compareTo(maxCourseTime)<0){
|
|
|
throw new BizException("课程组有效结结束时间不得早于最后一节课结束时间");
|
|
|
}
|
|
|
- if(Objects.nonNull(practiceGroup.getBuyMonths())){
|
|
|
- LocalDate courseStartDay = LocalDateTime.ofInstant(practiceGroup.getCoursesStartDate().toInstant(), DateUtil.zoneId).toLocalDate();
|
|
|
- LocalDate currentExpiredDay = courseStartDay.plusMonths(practiceGroup.getBuyMonths()).plusDays(-1);
|
|
|
- Date courseExpiredDateTemp=Date.from(currentExpiredDay.atStartOfDay(DateUtil.zoneId).toInstant());
|
|
|
- if(coursesExpireDate.before(courseExpiredDateTemp)){
|
|
|
- throw new BizException("课程结束时间不得早于,{}", DateUtil.dateToString(courseExpiredDateTemp, "yyyy年MM月dd日"));
|
|
|
- }
|
|
|
- }
|
|
|
+// if(Objects.nonNull(practiceGroup.getBuyMonths())){
|
|
|
+// LocalDate courseStartDay = LocalDateTime.ofInstant(practiceGroup.getCoursesStartDate().toInstant(), DateUtil.zoneId).toLocalDate();
|
|
|
+// LocalDate currentExpiredDay = courseStartDay.plusMonths(practiceGroup.getBuyMonths()).plusDays(-1);
|
|
|
+// Date courseExpiredDateTemp=Date.from(currentExpiredDay.atStartOfDay(DateUtil.zoneId).toInstant());
|
|
|
+// if(coursesExpireDate.before(courseExpiredDateTemp)){
|
|
|
+// throw new BizException("课程结束时间不得早于,{}", DateUtil.dateToString(courseExpiredDateTemp, "yyyy年MM月dd日"));
|
|
|
+// }
|
|
|
+// }
|
|
|
CoursesGroupModifyLog coursesGroupModifyLog = new CoursesGroupModifyLog();
|
|
|
coursesGroupModifyLog.setGroupId(practiceGroupId);
|
|
|
coursesGroupModifyLog.setGroupType(PRACTICE.getCode());
|