|
|
@ -43,6 +43,7 @@ import static cn.jlw.util.CacheUserUtil.getStudent;
|
|
|
|
import static com.ibeetl.admin.core.util.ExcelUtil.convertData;
|
|
|
|
import static com.ibeetl.admin.core.util.ExcelUtil.convertData;
|
|
|
|
import static com.ibeetl.admin.core.util.ExcelUtil.write;
|
|
|
|
import static com.ibeetl.admin.core.util.ExcelUtil.write;
|
|
|
|
import static com.ibeetl.admin.core.util.user.CacheUserUtil.getUser;
|
|
|
|
import static com.ibeetl.admin.core.util.user.CacheUserUtil.getUser;
|
|
|
|
|
|
|
|
import static com.ibeetl.jlw.enums.QuestionLogAddTypeEnum.FINALLY_SUBMIT;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 题目日志 我的课程-题库-做题日志 接口
|
|
|
|
* 题目日志 我的课程-题库-做题日志 接口
|
|
|
@ -204,15 +205,15 @@ public class TeacherOpenCourseQuestionLogController {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 批量收藏题目 / 取消收藏
|
|
|
|
* 批量收藏题目 / 取消收藏
|
|
|
|
* @param questionSettingId 题目配置ID
|
|
|
|
* @param questionSettingId 题目配置ID
|
|
|
|
* @param questionSnapshotIds 题目快照IDs
|
|
|
|
* @param questionSnapIds 题目快照IDs
|
|
|
|
* @param isTuck 是否收藏:true, false
|
|
|
|
* @param isTuck 是否收藏:true, false
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(API + "/tuck.do")
|
|
|
|
@PostMapping(API + "/tuck.do")
|
|
|
|
public JsonResult tuck(Long questionSettingId, String questionSnapshotIds, boolean isTuck) {
|
|
|
|
public JsonResult tuck(Long questionSettingId, String questionSnapIds, boolean isTuck) {
|
|
|
|
Student student = getStudent();
|
|
|
|
Student student = getStudent();
|
|
|
|
Assert.notNull(student, "该接口只能学生操作!");
|
|
|
|
Assert.notNull(student, "该接口只能学生操作!");
|
|
|
|
teacherOpenCourseQuestionLogService.tuck(questionSettingId, questionSnapshotIds, isTuck, student);
|
|
|
|
teacherOpenCourseQuestionLogService.tuck(questionSettingId, questionSnapIds, isTuck, student);
|
|
|
|
return JsonResult.success();
|
|
|
|
return JsonResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -240,7 +241,8 @@ public class TeacherOpenCourseQuestionLogController {
|
|
|
|
Assert.notNull(student, "非学生身份,无法获取收藏的题目!");
|
|
|
|
Assert.notNull(student, "非学生身份,无法获取收藏的题目!");
|
|
|
|
PageQuery query = new PageQuery(pageParam.getPage().longValue(), pageParam.getLimit().longValue());
|
|
|
|
PageQuery query = new PageQuery(pageParam.getPage().longValue(), pageParam.getLimit().longValue());
|
|
|
|
query.setPara("studentId", student.getStudentId());
|
|
|
|
query.setPara("studentId", student.getStudentId());
|
|
|
|
query.setPara("teacherOpenCourseQuestionLogStatus", 1);
|
|
|
|
// 只查询已经做完的题目,因为有的人万一做到一半,去看收藏夹的答案,再来做题,就很离谱
|
|
|
|
|
|
|
|
query.setPara("questionLogAddType", FINALLY_SUBMIT.name());
|
|
|
|
// 只查询收藏的题目
|
|
|
|
// 只查询收藏的题目
|
|
|
|
query.setPara("isTuck", true);
|
|
|
|
query.setPara("isTuck", true);
|
|
|
|
return JsonResult.success(teacherOpenCourseQuestionLogService.queryByConditionQuery(query));
|
|
|
|
return JsonResult.success(teacherOpenCourseQuestionLogService.queryByConditionQuery(query));
|
|
|
@ -258,18 +260,6 @@ public class TeacherOpenCourseQuestionLogController {
|
|
|
|
return JsonResult.success();
|
|
|
|
return JsonResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 查询分数详细信息
|
|
|
|
|
|
|
|
* @param query 题目分数查询实体
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(API + "/scoreDetailInfo.do")
|
|
|
|
|
|
|
|
public JsonResult scoreDetailInfo(@Validated TeacherOpenCourseQuestionLogScoreDetailsInfoQuery query) {
|
|
|
|
|
|
|
|
teacherOpenCourseQuestionLogService.getQuestionLogScoreDetailsInfo(query.getPageQuery());
|
|
|
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询错题集(错题库)
|
|
|
|
* 查询错题集(错题库)
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
@ -280,12 +270,24 @@ public class TeacherOpenCourseQuestionLogController {
|
|
|
|
Assert.notNull(student, "非学生身份,无法获取题目分析!");
|
|
|
|
Assert.notNull(student, "非学生身份,无法获取题目分析!");
|
|
|
|
PageQuery query = new PageQuery(pageParam.getPage().longValue(), pageParam.getLimit().longValue());
|
|
|
|
PageQuery query = new PageQuery(pageParam.getPage().longValue(), pageParam.getLimit().longValue());
|
|
|
|
query.setPara("studentId", student.getStudentId());
|
|
|
|
query.setPara("studentId", student.getStudentId());
|
|
|
|
query.setPara("teacherOpenCourseQuestionLogStatus", 1);
|
|
|
|
// 只查询已经做完的题目,因为有的人万一做到一半,去看错题库的答案,再来做题,就很离谱
|
|
|
|
|
|
|
|
query.setPara("questionLogAddType", FINALLY_SUBMIT.name());
|
|
|
|
// 只查询收藏到错题库的题目
|
|
|
|
// 只查询收藏到错题库的题目
|
|
|
|
query.setPara("isErrorFavorite", true);
|
|
|
|
query.setPara("isErrorFavorite", true);
|
|
|
|
return JsonResult.success(teacherOpenCourseQuestionLogService.queryByConditionQuery(query));
|
|
|
|
return JsonResult.success(teacherOpenCourseQuestionLogService.queryByConditionQuery(query));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 查询分数详细信息
|
|
|
|
|
|
|
|
* @param query 题目分数查询实体
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(API + "/scoreDetailInfo.do")
|
|
|
|
|
|
|
|
public JsonResult scoreDetailInfo(@Validated TeacherOpenCourseQuestionLogScoreDetailsInfoQuery query) {
|
|
|
|
|
|
|
|
teacherOpenCourseQuestionLogService.getQuestionLogScoreDetailsInfo(query.getPageQuery());
|
|
|
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 教师端-做题日志导出
|
|
|
|
* 教师端-做题日志导出
|
|
|
|
* @param condition 日志记录查询条件
|
|
|
|
* @param condition 日志记录查询条件
|
|
|
|