|
@@ -24,6 +24,7 @@ import com.ym.mec.biz.dal.entity.TeacherAttendance;
|
|
|
import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
import com.ym.mec.biz.dal.enums.SignStatusEnum;
|
|
|
import com.ym.mec.biz.dal.enums.StudentAttendanceStatusEnum;
|
|
|
+import com.ym.mec.biz.dal.enums.TeachModeEnum;
|
|
|
import com.ym.mec.biz.service.StudentAttendanceService;
|
|
|
import com.ym.mec.biz.service.SysConfigService;
|
|
|
import com.ym.mec.biz.service.TeacherAttendanceService;
|
|
@@ -128,6 +129,9 @@ public class RoomServiceImpl implements RoomService {
|
|
|
String userId = sysUser.getId().toString();
|
|
|
Teacher teacher = teacherDao.get(Integer.parseInt(userId));
|
|
|
CourseSchedule courseSchedule = courseScheduleDao.get(Long.parseLong(roomId));
|
|
|
+ if(courseSchedule.getTeachMode() == TeachModeEnum.OFFLINE){
|
|
|
+ throw new BizException("加入失败:线下课不允许此操作");
|
|
|
+ }
|
|
|
if(teacher != null && userId.equals(courseSchedule.getActualTeacherId())){
|
|
|
courseScheduleStudentPaymentDao.adjustPlayMidi(Long.parseLong(roomId),null,null);
|
|
|
userName = sysUser.getRealName();
|
|
@@ -1509,4 +1513,4 @@ public class RoomServiceImpl implements RoomService {
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
-}
|
|
|
+}
|