|
@@ -21,6 +21,7 @@ import com.ruoyi.dz.service.IDzSubjectService;
|
|
|
import com.ruoyi.enums.ExamineeStatus;
|
|
import com.ruoyi.enums.ExamineeStatus;
|
|
|
import com.ruoyi.enums.PaperStatus;
|
|
import com.ruoyi.enums.PaperStatus;
|
|
|
import com.ruoyi.enums.PaperType;
|
|
import com.ruoyi.enums.PaperType;
|
|
|
|
|
+import com.ruoyi.enums.QuestionType;
|
|
|
import com.ruoyi.ie.domain.AMarjorPlan;
|
|
import com.ruoyi.ie.domain.AMarjorPlan;
|
|
|
import com.ruoyi.ie.mapper.AMarjorPlanMapper;
|
|
import com.ruoyi.ie.mapper.AMarjorPlanMapper;
|
|
|
import com.ruoyi.learn.domain.*;
|
|
import com.ruoyi.learn.domain.*;
|
|
@@ -432,7 +433,7 @@ public class LearnTeacherService {
|
|
|
paperService.savePaper(paper, pqList);
|
|
paperService.savePaper(paper, pqList);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public List<TreeNode> getKnowledgeTree(String examineeType, Long subjectId, Set<Long> knowledgeIdSet, Long studentId) {
|
|
|
|
|
|
|
+ public List<TreeNode> getKnowledgeTree(String examineeType, Long subjectId, Set<Long> knowledgeIdSet, Long studentId, Integer questionType) {
|
|
|
LearnKnowledgeTree ktCond = new LearnKnowledgeTree();
|
|
LearnKnowledgeTree ktCond = new LearnKnowledgeTree();
|
|
|
if (null != subjectId && !subjectId.equals(100L)) {
|
|
if (null != subjectId && !subjectId.equals(100L)) {
|
|
|
ktCond.setSubjectId(subjectId);
|
|
ktCond.setSubjectId(subjectId);
|
|
@@ -444,6 +445,9 @@ public class LearnTeacherService {
|
|
|
Map cond = Maps.newHashMap();
|
|
Map cond = Maps.newHashMap();
|
|
|
cond.put("studentId", studentId);
|
|
cond.put("studentId", studentId);
|
|
|
cond.put("knowIds", ktList.stream().map(LearnKnowledgeTree::getId).collect(Collectors.toList()));
|
|
cond.put("knowIds", ktList.stream().map(LearnKnowledgeTree::getId).collect(Collectors.toList()));
|
|
|
|
|
+ if(null != questionType && !questionType.equals(0)) {
|
|
|
|
|
+ cond.put("types", Lists.newArrayList(QuestionType.Single.getTitle(), QuestionType.Judgment.getTitle()));
|
|
|
|
|
+ }
|
|
|
knowCountMap = Maps.newHashMap();
|
|
knowCountMap = Maps.newHashMap();
|
|
|
for(LearnQuestions qs : learnQuestionsMapper.statByKnowledge(cond)) {
|
|
for(LearnQuestions qs : learnQuestionsMapper.statByKnowledge(cond)) {
|
|
|
knowCountMap.put(qs.getKnowledgeId(), new Integer[] { qs.getNumber().intValue(), qs.getId().intValue(), qs.getYear().intValue()} );
|
|
knowCountMap.put(qs.getKnowledgeId(), new Integer[] { qs.getNumber().intValue(), qs.getId().intValue(), qs.getYear().intValue()} );
|