mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 02:16:49 +08:00
修改进度同步执行顺序
This commit is contained in:
@@ -328,12 +328,12 @@ public class StudyCourseApi extends ApiBaseController{
|
|||||||
if(item.getProgress()<100 && sci.getProgress()>item.getProgress()) {
|
if(item.getProgress()<100 && sci.getProgress()>item.getProgress()) {
|
||||||
studyService.updateProcess(item.getId(), sci.getStudyId(), sci.getCourseId(), sci.getContentTotal(), sci.getProgress());
|
studyService.updateProcess(item.getId(), sci.getStudyId(), sci.getCourseId(), sci.getContentTotal(), sci.getProgress());
|
||||||
}
|
}
|
||||||
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(sci.getStudyId(), sci.getCourseId(), token);
|
|
||||||
log.info("在线课学习记录"+allUserList);
|
|
||||||
System.out.println("在线课学习记录"+allUserList);
|
|
||||||
//追加学习时长
|
//追加学习时长
|
||||||
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);
|
||||||
|
System.out.println("在线课学习记录"+allUserList);
|
||||||
return success(item.getId());
|
return success(item.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -349,11 +349,12 @@ public class StudyCourseApi extends ApiBaseController{
|
|||||||
sci.setAname(cuser.getName());
|
sci.setAname(cuser.getName());
|
||||||
|
|
||||||
studyService.saveStudyInfo(sci);
|
studyService.saveStudyInfo(sci);
|
||||||
|
//学习记录成功后处理
|
||||||
|
studyService.appendStudyDuration(sci.getStudyId(),sci.getStudyItemId(),sci.getContentId(),sci.getDuration());
|
||||||
|
|
||||||
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(sci.getStudyId(), sci.getCourseId(), token);
|
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(sci.getStudyId(), sci.getCourseId(), token);
|
||||||
log.info("在线课学习记录"+allUserList);
|
log.info("在线课学习记录"+allUserList);
|
||||||
System.out.println("在线课学习记录"+allUserList);
|
System.out.println("在线课学习记录"+allUserList);
|
||||||
//学习记录成功后处理
|
|
||||||
studyService.appendStudyDuration(sci.getStudyId(),sci.getStudyItemId(),sci.getContentId(),sci.getDuration());
|
|
||||||
return success(sci.getStudyItemId());
|
return success(sci.getStudyItemId());
|
||||||
}catch(Exception e) {
|
}catch(Exception e) {
|
||||||
log.error("记录学习情况错误",e);
|
log.error("记录学习情况错误",e);
|
||||||
|
|||||||
Reference in New Issue
Block a user