派生自 projectDept/qhighschool

EricsHu
2023-06-06 f6c19ce9e8ec6ccbcc9f6eaa3d168b27bba214eb
资源,直播,考试
3个文件已修改
19 ■■■■■ 已修改文件
src/main/java/com/qxueyou/scc/controller/CoursewareController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/qxueyou/scc/controller/VideoLiveController.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/qxueyou/scc/exam/service/impl/ExamService.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/qxueyou/scc/controller/CoursewareController.java
@@ -93,7 +93,7 @@
        return new Result(true, "success",
                CollectionUtils.newObjectMap("coursewareLst",
                        QBeanUtils.listBean2ListMap(lectures,
                                CollectionUtils.newStringMap("name", "name", "resItemId", "id", "lectureType", "type",
                                CollectionUtils.newStringMap("lectureId","lectureId","name", "name", "resItemId", "id", "lectureType", "type",
                                        "chapterId", "chapterId", "status", "status", "updateTime", "updateTime")),
                        "count", lectureCount));
src/main/java/com/qxueyou/scc/controller/VideoLiveController.java
@@ -186,6 +186,13 @@
        String res = client.courseVisitorList(courseId,page,size,options);
        return new Result(true,"开启成功",res);
    }
//    @ApiOperation(value = "查看详情")
//    @GetMapping(value = "detailLive")
//    public Result detailLive(String liveId) {
//        commonDAO.find
//        return new Result(true,"开启成功",res);
//    }
    /**
     * 查询直播详情
     * 
src/main/java/com/qxueyou/scc/exam/service/impl/ExamService.java
@@ -567,11 +567,11 @@
        // 如果已提交就查询用户答案信息
        //TODO 暂时不可以查看考试答案,已提交就不可以进入
        if (Integer.valueOf(record.getStatus())> 0) {
            resultData.put("studentScore", record.getScore());
            resultData.put("objStudentScore", record.getObjScore()==null?BigDecimal.ZERO:record.getObjScore());
            return new Result(false,"考试已提交");
        }
//        if (Integer.valueOf(record.getStatus())> 0) {
//            resultData.put("studentScore", record.getScore());
//            resultData.put("objStudentScore", record.getObjScore()==null?BigDecimal.ZERO:record.getObjScore());
//            return new Result(false,"考试已提交");
//        }
        //获取考试
        String ql="select i from ExamInfo i , ExamBatchClassRe r where i.deleteFlag is false and r.examBatchId=? and r.examId=i.examId";
        ExamInfo exam = this.findUnique(ql, CollectionUtils.newList(examBatchId), ExamInfo.class);