|
|
@@ -6,6 +6,7 @@ import com.alibaba.fastjson2.util.DateUtils;
|
|
|
import com.ruoyi.common.annotation.Excel;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult2;
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
+import com.ruoyi.common.utils.NumberUtils;
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.dz.domain.DzSubject;
|
|
|
import com.ruoyi.dz.service.IDzSubjectService;
|
|
|
@@ -15,10 +16,7 @@ import com.ruoyi.learn.domain.LearnExaminee;
|
|
|
import com.ruoyi.learn.domain.LearnPaper;
|
|
|
import com.ruoyi.learn.domain.LearnStudent;
|
|
|
import com.ruoyi.learn.domain.LearnTestStudent;
|
|
|
-import com.ruoyi.learn.mapper.LearnExamineeMapper;
|
|
|
-import com.ruoyi.learn.mapper.LearnPaperMapper;
|
|
|
-import com.ruoyi.learn.mapper.LearnStudentMapper;
|
|
|
-import com.ruoyi.learn.mapper.LearnTestStudentMapper;
|
|
|
+import com.ruoyi.learn.mapper.*;
|
|
|
import com.ruoyi.learn.service.ILearnStudentService;
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
|
import org.apache.commons.compress.utils.Lists;
|
|
|
@@ -37,14 +35,16 @@ public class StudentService {
|
|
|
private final IDzSubjectService dzSubjectService;
|
|
|
private final LearnTeacherService learnTeacherService;
|
|
|
private final LearnExamineeMapper learnExamineeMapper;
|
|
|
+ private final LearnAnswerMapper learnAnswerMapper;
|
|
|
|
|
|
- public StudentService(LearnPaperMapper learnPaperMapper, LearnTestStudentMapper learnTestStudentMapper, ILearnStudentService learnStudentService, IDzSubjectService dzSubjectService, LearnTeacherService learnTeacherService, LearnExamineeMapper learnExamineeMapper) {
|
|
|
+ public StudentService(LearnPaperMapper learnPaperMapper, LearnTestStudentMapper learnTestStudentMapper, ILearnStudentService learnStudentService, IDzSubjectService dzSubjectService, LearnTeacherService learnTeacherService, LearnExamineeMapper learnExamineeMapper, LearnAnswerMapper learnAnswerMapper) {
|
|
|
this.learnPaperMapper = learnPaperMapper;
|
|
|
this.learnTestStudentMapper = learnTestStudentMapper;
|
|
|
this.learnStudentService = learnStudentService;
|
|
|
this.dzSubjectService = dzSubjectService;
|
|
|
this.learnTeacherService = learnTeacherService;
|
|
|
this.learnExamineeMapper = learnExamineeMapper;
|
|
|
+ this.learnAnswerMapper = learnAnswerMapper;
|
|
|
}
|
|
|
|
|
|
public List<DzSubject> getSubjectList(boolean directed) {
|
|
|
@@ -84,6 +84,10 @@ public class StudentService {
|
|
|
return learnPaperMapper.selectLearnPaperForStudent(studentId, status);
|
|
|
}
|
|
|
|
|
|
+ public List<JSONObject> getSimulateStat(Long examineeId) {
|
|
|
+ return learnAnswerMapper.selectSimulatedKnowledgeStats(examineeId);
|
|
|
+ }
|
|
|
+
|
|
|
public List<JSONObject> getSimulateList(Long studentId) {
|
|
|
LearnExaminee eCond = new LearnExaminee();
|
|
|
eCond.setStudentId(studentId);
|