|
@@ -90,6 +90,9 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
|
|
|
if(Objects.isNull(courseSchedule)){
|
|
|
throw new BizException("请指定课程");
|
|
|
}
|
|
|
+ if(TeachModeEnum.ONLINE.equals(courseSchedule.getTeachMode())){
|
|
|
+ throw new BizException("线上课程请进入房间授课");
|
|
|
+ }
|
|
|
Date date = new Date();
|
|
|
SysConfig attendanceTimeRange;
|
|
|
if(courseSchedule.getGroupType().equals(GroupType.MUSIC)){
|
|
@@ -203,8 +206,6 @@ public class StudentAttendanceServiceImpl extends BaseServiceImpl<Long, StudentA
|
|
|
teacherAttendance= new TeacherAttendance();
|
|
|
teacherAttendance.setTeacherId(sysUser.getId());
|
|
|
teacherAttendance.setCreateTime(date);
|
|
|
- }else if(teacherAttendance.getSignInTime() != null && teacherAttendance.getSignOutTime() != null){
|
|
|
- return;
|
|
|
}
|
|
|
|
|
|
teacherAttendance.setSignInTime(courseSchedule.getStartClassTime());
|