派生自 projectDept/qhighschool

Administrator
2022-12-06 92027c9960c8e4e8d84db11c2c422254a5b7d38c
src/main/java/com/qxueyou/scc/admin/progress/service/impl/item/LectureProgressService.java
@@ -19,15 +19,15 @@
@Service("LectureProgressService")
public class LectureProgressService extends CommonAppService implements IDetailProgressService {
   @Autowired
   IClassLectureService lectureService;
   /**
    * 各类型课件进度服务实现
    * 各类型课件进度服务实现
    */
   private Map<String, IDetailProgressService> resItemServiceMap = new HashMap<String, IDetailProgressService>(6);
   @Autowired
    private ApplicationContext appContext;
@@ -37,27 +37,27 @@
      addLectureProgressService(appContext.getBean("LectureAudioProgressService",IDetailProgressService.class));
      addLectureProgressService(appContext.getBean("LectureDocProgressService",IDetailProgressService.class));
   }
   private void addLectureProgressService(IDetailProgressService service) {
      resItemServiceMap.put(service.getType(), service);
   }
   @Override
   public Result addProgress(String targetId,String learnerId, int start, int end) {
      ClsSubjectLecture lecture = lectureService.readClsLecture(targetId);
      String lectureType = null;
      if(lecture == null) {
         lectureType = this.read(SubjectLecture.class, targetId).getLectureType();
      }else {
         lectureType = lecture.getLectureType();
      }
      return resItemServiceMap.get(lectureType).addProgress(targetId, learnerId, start, end);
   }
   @Override
   public String getType() {
      return Progress.PROGRESS_TYPE_LECTURE;