|  | @@ -176,12 +176,12 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  		Date date = new Date();
 | 
	
		
			
				|  |  |  		if (courseScheduleList != null) {
 | 
	
		
			
				|  |  |  			for (CourseSchedule cs : courseScheduleList) {
 | 
	
		
			
				|  |  | -				if (cs.getStatus() == CourseStatusEnum.OVER) {
 | 
	
		
			
				|  |  | -					throw new BizException("删除失败,已结束的课程不能删除");
 | 
	
		
			
				|  |  | +				if (cs.getStatus() != CourseStatusEnum.NOT_START) {
 | 
	
		
			
				|  |  | +					throw new BizException("删除失败,未开始的课程才能删除");
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  | -				String endDateStr = DateUtil.format(cs.getClassDate(), "yyyy-MM-dd") + " " + DateUtil.format(cs.getEndClassTime(), "HH:mm:ss");
 | 
	
		
			
				|  |  | +				String endDateStr = DateUtil.format(cs.getClassDate(), "yyyy-MM-dd") + " " + DateUtil.format(cs.getStartClassTime(), "HH:mm:ss");
 | 
	
		
			
				|  |  |  				if (DateUtil.stringToDate(endDateStr, sdf).before(date)) {
 | 
	
		
			
				|  |  | -					throw new BizException("删除失败,已结束的课程不能删除");
 | 
	
		
			
				|  |  | +					throw new BizException("删除失败,未开始的课程才能删除");
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		}
 |