|
@@ -1,16 +1,11 @@
|
|
|
package com.ym.mec.web.service.impl;
|
|
|
|
|
|
-import com.ym.mec.web.dal.dto.StudentAttendanceViewDto;
|
|
|
-import com.ym.mec.web.dal.dto.TeacherAttendanceDto;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
import com.ym.mec.web.dal.dao.CourseScheduleDao;
|
|
|
+import com.ym.mec.web.dal.dto.TeacherAttendanceDto;
|
|
|
import com.ym.mec.web.dal.entity.CourseSchedule;
|
|
|
import com.ym.mec.web.dal.enums.ParamEnum;
|
|
|
-import com.ym.mec.web.dal.utilEntity.TeacherAttendanceViewUtilEntity;
|
|
|
import com.ym.mec.web.service.CourseScheduleService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -29,15 +24,10 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public TeacherAttendanceViewUtilEntity getCurrentCourseDetail(Long teacherId) {
|
|
|
- TeacherAttendanceViewUtilEntity currentCourseDetail = courseScheduleDao.getCurrentCourseDetail(teacherId);
|
|
|
+ public TeacherAttendanceDto getCurrentCourseDetail(Long teacherId) {
|
|
|
+ TeacherAttendanceDto currentCourseDetail = courseScheduleDao.getCurrentCourseDetail(teacherId);
|
|
|
currentCourseDetail.setCurrentTime(new Date());
|
|
|
currentCourseDetail.setTeacherAttendanceTimeGap(ParamEnum.TEACHER_ATTENDANCE_TIME_GAP);
|
|
|
return currentCourseDetail;
|
|
|
}
|
|
|
-
|
|
|
- @Override
|
|
|
- public List<StudentAttendanceViewDto> getCurrentCourseStudents(Long classID) {
|
|
|
- return courseScheduleDao.getCurrentCourseStudents(classID);
|
|
|
- }
|
|
|
}
|