| | |
| | | |
| | | import com.qxueyou.scc.admin.classes.model.ClsSubjectLecture; |
| | | import com.qxueyou.scc.admin.classes.service.impl.ClassLectureService; |
| | | import com.qxueyou.scc.teach.subject.service.ILectureService; |
| | | import com.qxueyou.scc.teach.subject.service.impl.SubjectLectureService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | @Autowired |
| | | ClassLectureService classLectureService; |
| | | |
| | | @Autowired |
| | | SubjectLectureService subjectLectureService; |
| | | |
| | | @Override |
| | | public Result addProgress(String targetId, String learnerId, int start, int end) { |
| | | |
| | |
| | | updateProgress(targetId, p, sum); |
| | | } |
| | | |
| | | //保存学习记录明细 |
| | | //保存学习记录明细 |
| | | this.saveProgressDetail(start, end, targetId, p.getProgressId(), learnerId); |
| | | |
| | | classLectureService.updateLecturetime(targetId); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 保存学习记录明细 |
| | | * 保存学习记录明细 |
| | | * |
| | | * @param start |
| | | * @param end |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取进度百分比 |
| | | * 获取进度百分比 |
| | | * |
| | | * @param targetId |
| | | * @param sum |