|
|
@@ -44,8 +44,9 @@ public class FrontExamController {
|
|
|
private final ILearnStudentService learnStudentService;
|
|
|
private final ILearnCultureKnowledgeService learnCultureKnowledgeService;
|
|
|
private final IBBusiWishUniversitiesService wishUniversitiesService;
|
|
|
+ private final LearnTeacherService learnTeacherService;
|
|
|
|
|
|
- public FrontExamController(ExamService examService, SyTestMajorService syTestMajorService, CacheService cacheService, IDzSubjectService dzSubjectService, IDzSubjectService dzSubjectService1, StudentService studentService, ISysUserService sysUserService, ILearnStudentService learnStudentService, ILearnCultureKnowledgeService learnCultureKnowledgeService, IBBusiWishUniversitiesService wishUniversitiesService) {
|
|
|
+ public FrontExamController(ExamService examService, SyTestMajorService syTestMajorService, CacheService cacheService, IDzSubjectService dzSubjectService, IDzSubjectService dzSubjectService1, StudentService studentService, ISysUserService sysUserService, ILearnStudentService learnStudentService, ILearnCultureKnowledgeService learnCultureKnowledgeService, IBBusiWishUniversitiesService wishUniversitiesService, LearnTeacherService learnTeacherService) {
|
|
|
this.examService = examService;
|
|
|
this.syTestMajorService = syTestMajorService;
|
|
|
this.cacheService = cacheService;
|
|
|
@@ -55,6 +56,7 @@ public class FrontExamController {
|
|
|
this.learnStudentService = learnStudentService;
|
|
|
this.learnCultureKnowledgeService = learnCultureKnowledgeService;
|
|
|
this.wishUniversitiesService = wishUniversitiesService;
|
|
|
+ this.learnTeacherService = learnTeacherService;
|
|
|
}
|
|
|
|
|
|
@GetMapping("/subjects")
|
|
|
@@ -66,11 +68,8 @@ public class FrontExamController {
|
|
|
if(ExamType.SVS.equals(sysUser.getExamType())) {
|
|
|
Set<Long> subjectIdSet;
|
|
|
LearnStudent ls = learnStudentService.selectLearnStudentByStudentId(sysUser.getUserId());
|
|
|
- if(null != ls && null != ls.getUniversityId()) {
|
|
|
- LearnCultureKnowledge ckCond = new LearnCultureKnowledge();
|
|
|
- ckCond.setUniversityId(ls.getUniversityId());
|
|
|
- ckCond.setExamineeTypes(sysUser.getExamType().name());
|
|
|
- subjectIdSet = learnCultureKnowledgeService.selectLearnCultureKnowledgeList(ckCond).stream().map(t -> Long.parseLong(t.getSubjects())).collect(Collectors.toSet());
|
|
|
+ if(null != ls && null != ls.getMajorPlanId()) {
|
|
|
+ subjectIdSet = learnTeacherService.getLearnCultureKnowledgeList(ls.getMajorPlanId()).stream().map(t -> Long.parseLong(t.getSubjects())).collect(Collectors.toSet());
|
|
|
if(subjectIdSet.isEmpty()) {
|
|
|
BBusiWishUniversities u = wishUniversitiesService.selectBBusiWishUniversitiesById(ls.getUniversityId());
|
|
|
if(null != u.getBxLevel() && u.getBxLevel().contains("民办")) {
|