| | |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | |
| | | import com.qxueyou.scc.teach.subject.service.ILectureService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public class LectureProgressService extends CommonAppService implements IDetailProgressService { |
| | | |
| | | @Autowired |
| | | IClassLectureService lectureService; |
| | | IClassLectureService clsLectureService; |
| | | |
| | | @Autowired |
| | | ILectureService lectureService; |
| | | |
| | | /** |
| | | * 各类型课件进度服务实现 |
| | |
| | | |
| | | @Override |
| | | public Result addProgress(String targetId,String learnerId, int start, int end) { |
| | | ClsSubjectLecture lecture = lectureService.readClsLecture(targetId); |
| | | |
| | | ClsSubjectLecture lecture = clsLectureService.readClsLecture(targetId); |
| | | String lectureType = null; |
| | | if(lecture == null) { |
| | | lectureType = this.read(SubjectLecture.class, targetId).getLectureType(); |