2 Комити 740b0470f6 ... 53776bc5d8

Аутор SHA1 Порука Датум
  mingfu 53776bc5d8 暂时去掉技能考试提示 пре 1 месец
  mingfu f1298b6fb2 技能可能包含文化科目,文化科目也需要过滤 пре 1 месец

+ 1 - 0
ie-admin/src/main/java/com/ruoyi/web/controller/front/FrontStudentController.java

@@ -200,6 +200,7 @@ public class FrontStudentController extends BaseController {
         JSONArray.parse(user.getDirectedStudy()).stream().forEach(t -> {
             JSONObject o = (JSONObject) t;
             idList.add(o.getLong("majorId"));
+            o.put("notice", "");
             resultList.add(o);
         });
         if(idList.isEmpty()) {

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

@@ -593,12 +593,7 @@ public class LearnTeacherService {
                 examType = null != sysUser.getExamType() ? sysUser.getExamType().name() : ExamType.OHS.name();
             }
             AMarjorPlan plan = planList.get(0);
-            Set<Long> idSet;
-            if((null == subjectId || subjectId >= 10) && (null == year || plan.getMatchYear().equals(year))) {
-                idSet = getStudentKnowledgeIdSet(plan.getMatchYear(), plan, sysUser.getLocation(), examType);
-            } else {
-                idSet = Sets.newHashSet();
-            }
+            Set<Long> idSet = getStudentKnowledgeIdSet(plan.getMatchYear(), plan, sysUser.getLocation(), examType);
             if(null == subjectId || subjectId < 10) {
                 LearnCultureKnowledge ckCond = new LearnCultureKnowledge();
                 ckCond.setUniversityId(plan.getUniversityId());