|
@@ -4057,6 +4057,12 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
if(courseScheduleId == null || courseScheduleId.size() == 0){
|
|
if(courseScheduleId == null || courseScheduleId.size() == 0){
|
|
throw new BizException("课程已结算,无法清除考勤");
|
|
throw new BizException("课程已结算,无法清除考勤");
|
|
}
|
|
}
|
|
|
|
+ if(courseScheduleId.size()==1){
|
|
|
|
+ VipGroup vipGroup = vipGroupDao.findByCourseSchedule(courseScheduleId.get(0));
|
|
|
|
+ if(!VipGroupStatusEnum.PROGRESS.equals(vipGroup.getStatus())){
|
|
|
|
+ throw new BizException("当前课程组状态非进行中,无法进行该操作");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
teacherAttendanceDao.batchCleanCourseTeacherSignInfo(courseScheduleId);
|
|
teacherAttendanceDao.batchCleanCourseTeacherSignInfo(courseScheduleId);
|
|
studentAttendanceDao.deleteByCourseSchedules(courseScheduleId);
|
|
studentAttendanceDao.deleteByCourseSchedules(courseScheduleId);
|
|
//重置学生人数
|
|
//重置学生人数
|