|
|
@ -9,6 +9,7 @@ import com.ibeetl.admin.core.file.FileService;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.jlw.entity.ResourcesQuestionSnapshot;
|
|
|
|
import com.ibeetl.jlw.entity.ResourcesQuestionSnapshot;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseQuestionLogScoreInfo;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseQuestionLogScoreInfo;
|
|
|
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseQuestionTestSimpleInfo;
|
|
|
|
import com.ibeetl.jlw.enums.ResourcesQuestionSnapshotFromTypeEnum;
|
|
|
|
import com.ibeetl.jlw.enums.ResourcesQuestionSnapshotFromTypeEnum;
|
|
|
|
import com.ibeetl.jlw.service.ResourcesQuestionSnapshotService;
|
|
|
|
import com.ibeetl.jlw.service.ResourcesQuestionSnapshotService;
|
|
|
|
import com.ibeetl.jlw.web.query.ResourcesQuestionSnapshotQuery;
|
|
|
|
import com.ibeetl.jlw.web.query.ResourcesQuestionSnapshotQuery;
|
|
|
@ -27,6 +28,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 题目快照 资源管理 - 题库管理-快照-关联来源 接口
|
|
|
|
* 题目快照 资源管理 - 题库管理-快照-关联来源 接口
|
|
|
@ -217,4 +219,108 @@ public class ResourcesQuestionSnapshotController{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 学生端-获取章节练习的简单信息
|
|
|
|
|
|
|
|
* 支持根据来源类型查询
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param snapshotFromId 题目快照 来源ID 可以是作业、考试、章节练习
|
|
|
|
|
|
|
|
* @param snapshotFromType 题目快照类型
|
|
|
|
|
|
|
|
* @param coreUser
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/getQuestionTestSimpleInfo.json")
|
|
|
|
|
|
|
|
@Function("teacherOpenCourseQuestionLog.query")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public JsonResult<TeacherOpenCourseQuestionTestSimpleInfo> getQuestionTestSimpleInfo(
|
|
|
|
|
|
|
|
Long snapshotFromId,
|
|
|
|
|
|
|
|
ResourcesQuestionSnapshotFromTypeEnum snapshotFromType,
|
|
|
|
|
|
|
|
@SCoreUser
|
|
|
|
|
|
|
|
CoreUser coreUser) {
|
|
|
|
|
|
|
|
Assert.isTrue(coreUser.isStudent(), "非学生身份,无法获取数据!");
|
|
|
|
|
|
|
|
return JsonResult.success(resourcesQuestionSnapshotService.getQuestionTestSimpleInfo(snapshotFromId, snapshotFromType));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 教师端-获取题目的练习成绩
|
|
|
|
|
|
|
|
* 支持根据来源类型查询
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param snapshotFromId 题目快照 来源ID 可以是作业、考试、章节练习
|
|
|
|
|
|
|
|
* @param snapshotFromType 题目快照类型
|
|
|
|
|
|
|
|
* @param coreUser
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/questionTestResults.json")
|
|
|
|
|
|
|
|
@Function("teacherOpenCourseQuestionLog.query")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public JsonResult questionTestResults(
|
|
|
|
|
|
|
|
Long snapshotFromId,
|
|
|
|
|
|
|
|
ResourcesQuestionSnapshotFromTypeEnum snapshotFromType,
|
|
|
|
|
|
|
|
@SCoreUser
|
|
|
|
|
|
|
|
CoreUser coreUser) {
|
|
|
|
|
|
|
|
return JsonResult.success(resourcesQuestionSnapshotService.questionTestResults(snapshotFromId, snapshotFromType));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 教师端-获取题目的练习详情
|
|
|
|
|
|
|
|
* 支持根据来源类型查询
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param snapshotFromId 题目快照 来源ID 可以是作业、考试、章节练习
|
|
|
|
|
|
|
|
* @param snapshotFromType 题目快照类型
|
|
|
|
|
|
|
|
* @param coreUser
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/questionTestDetail.json")
|
|
|
|
|
|
|
|
@Function("teacherOpenCourseQuestionLog.query")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public JsonResult questionTestDetail(
|
|
|
|
|
|
|
|
Long snapshotFromId,
|
|
|
|
|
|
|
|
ResourcesQuestionSnapshotFromTypeEnum snapshotFromType,
|
|
|
|
|
|
|
|
@SCoreUser
|
|
|
|
|
|
|
|
CoreUser coreUser) {
|
|
|
|
|
|
|
|
return JsonResult.success(resourcesQuestionSnapshotService.questionTestDetail(snapshotFromId, snapshotFromType));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 教师端-(开课)题目管理列表(试题管理等等)
|
|
|
|
|
|
|
|
* 支持根据来源类型查询
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param snapshotFromId 题目快照 来源ID 可以是作业、考试、章节练习
|
|
|
|
|
|
|
|
* @param snapshotFromType 题目快照类型
|
|
|
|
|
|
|
|
* @param coreUser
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/questionManagement.json")
|
|
|
|
|
|
|
|
@Function("teacherOpenCourseQuestionLog.query")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public JsonResult questionManagement(
|
|
|
|
|
|
|
|
Long snapshotFromId,
|
|
|
|
|
|
|
|
ResourcesQuestionSnapshotFromTypeEnum snapshotFromType,
|
|
|
|
|
|
|
|
@SCoreUser
|
|
|
|
|
|
|
|
CoreUser coreUser) {
|
|
|
|
|
|
|
|
return JsonResult.success(resourcesQuestionSnapshotService.questionManagement(snapshotFromId, snapshotFromType));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 教师端-(开课)题目管理列表(试题管理等等)
|
|
|
|
|
|
|
|
* 支持根据来源类型查询
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param teacherOpenCourseIds 开课ID集合,支持多对多
|
|
|
|
|
|
|
|
* @param teacherOpenCourseKnowledgePointsIds 知识点ID集合
|
|
|
|
|
|
|
|
* @param coreUser
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/bindKnowledgePoints.json")
|
|
|
|
|
|
|
|
@Function("teacherOpenCourseQuestionLog.query")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public JsonResult bindKnowledgePoints(
|
|
|
|
|
|
|
|
String teacherOpenCourseIds, // 开课ID
|
|
|
|
|
|
|
|
String chapterIds, // 章节ID
|
|
|
|
|
|
|
|
Set<Long> teacherOpenCourseKnowledgePointsIds, // 开课知识点ID集合
|
|
|
|
|
|
|
|
@SCoreUser
|
|
|
|
|
|
|
|
CoreUser coreUser) {
|
|
|
|
|
|
|
|
return JsonResult.success(resourcesQuestionSnapshotService.bindKnowledgePoints(teacherOpenCourseIds, chapterIds, teacherOpenCourseKnowledgePointsIds));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO 理想 差一张 章节练习表 类似teacherOpenCourseHomework
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|