Browse Source

feat:课程调整限制不能调整的过去

Joburgess 4 years ago
parent
commit
1cadebd61f

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseScheduleServiceImpl.java

@@ -3033,8 +3033,8 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
                 newCourseSchedule.setGroupType(oldCourseSchedule.getGroupType());
             }
 
-            if(CourseStatusEnum.OVER.equals(oldCourseSchedule.getStatus())&&newCourseSchedule.getStartClassTime().compareTo(date)<0){
-            	throw new BizException("调整无效,已结束不能调整至已结束");
+            if(newCourseSchedule.getStartClassTime().compareTo(date)<0){
+            	throw new BizException("调整无效,不能调整至已结束");
 			}
             
             //课程是否已结算