瀏覽代碼

特殊科目代表一级,忽略科目条件

mingfu 2 周之前
父節點
當前提交
b4a32e7231
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      ie-admin/src/main/java/com/ruoyi/web/service/LearnTeacherService.java

+ 4 - 1
ie-admin/src/main/java/com/ruoyi/web/service/LearnTeacherService.java

@@ -7,6 +7,7 @@ import com.google.common.collect.Maps;
 import com.google.common.collect.Sets;
 import com.ruoyi.common.core.domain.entity.SysUser;
 import com.ruoyi.common.enums.ExamType;
+import com.ruoyi.common.enums.SubjectType;
 import com.ruoyi.common.utils.NumberUtils;
 import com.ruoyi.common.utils.SecurityUtils;
 import com.ruoyi.dz.domain.DzClasses;
@@ -295,7 +296,9 @@ public class LearnTeacherService {
 
     public List<TreeNode> getKnowledgeTree(String examineeType, Long subjectId, Set<Long> knowledgeIdSet, Long studentId) {
         LearnKnowledgeTree ktCond = new LearnKnowledgeTree();
-        ktCond.setSubjectId(subjectId);
+        if (null != subjectId && !subjectId.equals(100L)) {
+            ktCond.setSubjectId(subjectId);
+        }
         ktCond.setExamineeTypes(examineeType);
         List<LearnKnowledgeTree> ktList = learnKnowledgeTreeMapper.selectLearnKnowledgeTreeList(ktCond);
         Map<Long, Integer[]> knowCountMap = null;