|
@@ -144,27 +144,24 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
|
* @param semester
|
|
|
* @param examId
|
|
|
* @param courseCode
|
|
|
+ * @param collegeId
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- @Cacheable(value = SystemConstant.COLLEGE_COURSE_REPORT, key = "#schoolId + '-' + #semester + '-' + #examId + '-' + #courseCode")
|
|
|
- public CollegeAndCourseResult surveyInspectAnalyseView(Long schoolId, SemesterEnum semester, Long examId, String courseCode) {
|
|
|
- SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
- if (Objects.isNull(sysUser)) {
|
|
|
- throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
|
- }
|
|
|
+ @Cacheable(value = SystemConstant.COLLEGE_COURSE_REPORT, key = "#schoolId + '-' + #semester + '-' + #examId + '-' + #courseCode + '-' + #collegeId")
|
|
|
+ public CollegeAndCourseResult surveyInspectAnalyseView(Long schoolId, SemesterEnum semester, Long examId, String courseCode, Long collegeId) {
|
|
|
//学院学科报表查询科目信息
|
|
|
- CourseInfoResult courseInfoResult = reportCommonService.findCourseInfo(examId, courseCode, sysUser.getOrgId());
|
|
|
+ CourseInfoResult courseInfoResult = reportCommonService.findCourseInfo(examId, courseCode, collegeId);
|
|
|
//学院学科报表科目描述
|
|
|
- CollegeAndSchoolGradeDistributionResult collegeAndSchoolGradeDistributionResult = reportCommonService.findCourseDistribution(examId, courseCode, sysUser.getOrgId());
|
|
|
+ CollegeAndSchoolGradeDistributionResult collegeAndSchoolGradeDistributionResult = reportCommonService.findCourseDistribution(examId, courseCode, collegeId);
|
|
|
//学院学科报表维度查询
|
|
|
- DimensionAnalyzeResult dimensionAnalyzeResult = reportCommonService.findDimensionInfo(examId, courseCode, sysUser.getOrgId(), null);
|
|
|
+ DimensionAnalyzeResult dimensionAnalyzeResult = reportCommonService.findDimensionInfo(examId, courseCode, collegeId, null);
|
|
|
//查找题目相关
|
|
|
- QuestionInfoResult questionInfoResult = reportCommonService.findSituationOfQuestions(examId, courseCode, sysUser.getOrgId(), null);
|
|
|
+ QuestionInfoResult questionInfoResult = reportCommonService.findSituationOfQuestions(examId, courseCode, collegeId, null);
|
|
|
//查找老师得分
|
|
|
- TeacherInfoListResult teacherInfoListResult = reportCommonService.findTeacherInfo(examId, courseCode, sysUser.getOrgId());
|
|
|
+ TeacherInfoListResult teacherInfoListResult = reportCommonService.findTeacherInfo(examId, courseCode, collegeId);
|
|
|
//查找题目信息
|
|
|
- QuestionListResult questionListResult = reportCommonService.findQuestionInfo(examId, courseCode, sysUser.getOrgId());
|
|
|
+ QuestionListResult questionListResult = reportCommonService.findQuestionInfo(examId, courseCode, collegeId);
|
|
|
|
|
|
return new CollegeAndCourseResult(courseInfoResult, collegeAndSchoolGradeDistributionResult, dimensionAnalyzeResult,
|
|
|
questionInfoResult, teacherInfoListResult, questionListResult);
|
|
@@ -177,15 +174,12 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
|
* @param semester
|
|
|
* @param examId
|
|
|
* @param courseCode
|
|
|
+ * @param collegeId
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- @Cacheable(value = SystemConstant.SURVEY_TEACHER_VIEW_REPORT, key = "#schoolId + '-' + #semester + '-' + #examId + '-' + #courseCode")
|
|
|
- public SurveyTeacherViewResult surveyTeacherView(Long schoolId, SemesterEnum semester, Long examId, String courseCode) {
|
|
|
- SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
- if (Objects.isNull(sysUser)) {
|
|
|
- throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
|
- }
|
|
|
+ @Cacheable(value = SystemConstant.SURVEY_TEACHER_VIEW_REPORT, key = "#schoolId + '-' + #semester + '-' + #examId + '-' + #courseCode + '-' + #collegeId")
|
|
|
+ public SurveyTeacherViewResult surveyTeacherView(Long schoolId, SemesterEnum semester, Long examId, String courseCode, Long collegeId) {
|
|
|
// 考试概况
|
|
|
TeachCourseSurveyResult teachCourseSurveyResult = this.getTeachCourseSurveyInfo(semester, examId, courseCode);
|
|
|
|
|
@@ -193,9 +187,9 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
|
SurveyTeacherExamCourseResult surveyTeacherExamCourseResult = reportCommonService.findAvgScore(schoolId, courseCode, examId, false);
|
|
|
|
|
|
//学院学科报表科目描述
|
|
|
- List<SurveyTeacherGradeDistributionResult> surveyTeacherGradeDistributionResultList = reportCommonService.surveyTeacherDistribution(examId, courseCode, sysUser.getOrgId(), false);
|
|
|
+ List<SurveyTeacherGradeDistributionResult> surveyTeacherGradeDistributionResultList = reportCommonService.surveyTeacherDistribution(examId, courseCode, collegeId, false);
|
|
|
//查找题目信息
|
|
|
- QuestionListResult questionListResult = reportCommonService.findQuestionInfo(examId, courseCode, sysUser.getOrgId());
|
|
|
+ QuestionListResult questionListResult = reportCommonService.findQuestionInfo(examId, courseCode, collegeId);
|
|
|
return new SurveyTeacherViewResult(surveyTeacherGradeDistributionResultList, questionListResult, surveyTeacherExamCourseResult, teachCourseSurveyResult);
|
|
|
}
|
|
|
|