|
@@ -5,6 +5,7 @@ import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dao.ClassGroupDao;
|
|
|
import com.ym.mec.biz.dal.dao.ClassGroupTeacherMapperDao;
|
|
|
import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
+import com.ym.mec.biz.dal.dao.VipGroupDao;
|
|
|
import com.ym.mec.biz.dal.dto.BatchInsertCoursesDto;
|
|
|
import com.ym.mec.biz.dal.dto.CoursePostponeDto;
|
|
|
import com.ym.mec.biz.dal.dto.CreateCourseScheduleDto;
|
|
@@ -65,6 +66,8 @@ public class CourseScheduleController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private EmployeeDao employeeDao;
|
|
|
+ @Autowired
|
|
|
+ private VipGroupDao vipGroupDao;
|
|
|
|
|
|
@ApiOperation(value = "排课")
|
|
|
@PostMapping("/batchAddCourseSchedule")
|
|
@@ -162,6 +165,10 @@ public class CourseScheduleController extends BaseController {
|
|
|
if(Objects.isNull(oldCourseSchedule)){
|
|
|
return failed("未找到指定课程");
|
|
|
}
|
|
|
+ VipGroup vipGroup = vipGroupDao.findByCourseSchedule(courseSchedule.getId());
|
|
|
+ if(!VipGroupStatusEnum.PROGRESS.equals(vipGroup.getStatus())){
|
|
|
+ throw new BizException("当前课程组状态非进行中,无法进行该操作");
|
|
|
+ }
|
|
|
if(Objects.isNull(courseSchedule.getClassGroupId())){
|
|
|
courseSchedule.setClassGroupId(oldCourseSchedule.getClassGroupId());
|
|
|
}
|