mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-07 01:46:47 +08:00
修改
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user