|
|
@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
|
|
|
|
import cn.jlw.Interceptor.TStudent;
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
|
|
import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
@ -162,12 +163,25 @@ public class TeacherOpenCourseQuestionLogController {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(API + "/questionAnalysisBySettingId.do")
|
|
|
|
@PostMapping(API + "/questionAnalysisBySettingId.do")
|
|
|
|
public JsonResult questionAnalysisBySettingId(Long questionSettingId) {
|
|
|
|
public JsonResult<Map<Integer, List<TeacherOpenCourseQuestionLog>>> questionAnalysisBySettingId(Long questionSettingId) {
|
|
|
|
Student student = getStudent();
|
|
|
|
Student student = getStudent();
|
|
|
|
Assert.notNull(student, "非学生身份,无法获取题目分析!");
|
|
|
|
Assert.notNull(student, "非学生身份,无法获取题目分析!");
|
|
|
|
return JsonResult.success(teacherOpenCourseQuestionLogService.questionAnalysis(questionSettingId, student.getStudentId()));
|
|
|
|
return JsonResult.success(teacherOpenCourseQuestionLogService.questionAnalysis(questionSettingId, student.getStudentId()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 学生端-答题后显示答案、和分析。
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param questionSettingId 题目配置ID
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(API + "/questionAnalysisBySettingId.do")
|
|
|
|
|
|
|
|
public JsonResult<List<TeacherOpenCourseQuestionLog>> questionAnalysisBySettingId(Long questionSettingId, @TStudent Student student) {
|
|
|
|
|
|
|
|
Assert.notNull(student, "非学生身份,无法获取题目分析!");
|
|
|
|
|
|
|
|
return JsonResult.success(teacherOpenCourseQuestionLogService.questionAnalysis(questionSettingId, student.getStudentId()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 学生端-教师端-学生总得分列表
|
|
|
|
* 学生端-教师端-学生总得分列表
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -190,7 +204,7 @@ public class TeacherOpenCourseQuestionLogController {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping(API + "/tuck.do")
|
|
|
|
@PostMapping(API + "/tuck.do")
|
|
|
|
public JsonResult tuck(String teacherOpenCourseQuestionLogIds, boolean isTuck) {
|
|
|
|
public JsonResult tuck(String questionSettingId, String questionSnapshotIds, String teacherOpenCourseQuestionLogIds, boolean isTuck) {
|
|
|
|
teacherOpenCourseQuestionLogService.tuck(teacherOpenCourseQuestionLogIds, isTuck);
|
|
|
|
teacherOpenCourseQuestionLogService.tuck(teacherOpenCourseQuestionLogIds, isTuck);
|
|
|
|
return JsonResult.success();
|
|
|
|
return JsonResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|