mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +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());
|
||||
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(sci.getStudyId() ,sci.getCourseId(), token);
|
||||
log.info("在线课学习记录"+allUserList);
|
||||
return success(item.getId());
|
||||
}
|
||||
|
||||
@@ -508,6 +510,8 @@ public class StudyCourseApi extends ApiBaseController{
|
||||
}
|
||||
try {
|
||||
studyService.finishVideoStudyItem(itemId, studyId,courseId,cnum,token);
|
||||
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(studyId,courseId, token);
|
||||
log.info("在线课学习记录"+allUserList);
|
||||
return success(true);
|
||||
}catch(Exception e) {
|
||||
log.error("记录内容学习完成错误",e);
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.xboe.school.study.api;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import com.xboe.api.ThirdApi;
|
||||
import com.xboe.school.study.entity.StudyCourse;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -19,6 +21,7 @@ import com.xboe.school.study.service.IStudyHomeWorkService;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
@Slf4j
|
||||
@@ -28,7 +31,8 @@ public class StudyHomeWorkApi extends ApiBaseController{
|
||||
|
||||
@Autowired
|
||||
IStudyHomeWorkService shomeworkService;
|
||||
|
||||
@Resource
|
||||
private ThirdApi thirdApi;
|
||||
@PostMapping("/save")
|
||||
public JsonResponse<StudyHomeWork> save(@RequestBody StudyHomeWork shw, HttpServletRequest request){
|
||||
if(StringUtils.isBlank(shw.getCourseId())) {
|
||||
@@ -49,7 +53,8 @@ public class StudyHomeWorkApi extends ApiBaseController{
|
||||
shw.setEndTime(LocalDateTime.now());
|
||||
|
||||
shomeworkService.save(shw,token);
|
||||
|
||||
List<StudyCourse> allUserList = thirdApi.getStudyCourseList(shw.getStudyId() ,shw.getCourseId(), token);
|
||||
log.info("在线课学习记录"+allUserList);
|
||||
return success(shw);
|
||||
}catch(Exception e) {
|
||||
log.error("保存答卷信息错误",e);
|
||||
|
||||
Reference in New Issue
Block a user