This commit is contained in:
zhaolongfei
2024-05-29 10:01:05 +08:00
parent a090325202
commit 0f882deca9
2 changed files with 4 additions and 3 deletions

View File

@@ -330,6 +330,8 @@ public class StudyCourseApi extends ApiBaseController{
} }
//追加学习时长 //追加学习时长
studyService.appendStudyDuration(sci.getStudyId(),item.getId(),sci.getContentId(),sci.getDuration()); studyService.appendStudyDuration(sci.getStudyId(),item.getId(),sci.getContentId(),sci.getDuration());
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(sci.getStudyId() ,sci.getCourseId(), token);
log.info("在线课学习记录"+allUserList);
return success(item.getId()); return success(item.getId());
} }
@@ -347,8 +349,8 @@ public class StudyCourseApi extends ApiBaseController{
studyService.saveStudyInfo(sci,token); studyService.saveStudyInfo(sci,token);
//学习记录成功后处理 //学习记录成功后处理
studyService.appendStudyDuration(sci.getStudyId(),sci.getStudyItemId(),sci.getContentId(),sci.getDuration()); studyService.appendStudyDuration(sci.getStudyId(),sci.getStudyItemId(),sci.getContentId(),sci.getDuration());
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(sci.getStudyId() ,sci.getCourseId(), token);
log.info("在线课学习记录"+allUserList);
//System.out.println("在线课学习记录"+allUserList); //System.out.println("在线课学习记录"+allUserList);
return success(sci.getStudyItemId()); return success(sci.getStudyItemId());
}catch(Exception e) { }catch(Exception e) {

View File

@@ -51,7 +51,6 @@ public class StudyHomeWorkApi extends ApiBaseController{
shw.setStudentId(cu.getAccountId()); shw.setStudentId(cu.getAccountId());
shw.setStudentName(cu.getName()); shw.setStudentName(cu.getName());
shw.setEndTime(LocalDateTime.now()); shw.setEndTime(LocalDateTime.now());
shomeworkService.save(shw,token); shomeworkService.save(shw,token);
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(shw.getStudyId() ,shw.getCourseId(), token); List<StudyCourse> allUserList = thirdApi.getStudyCourseList(shw.getStudyId() ,shw.getCourseId(), token);
log.info("在线课学习记录"+allUserList); log.info("在线课学习记录"+allUserList);