|
@@ -243,7 +243,7 @@ public class ReportCommonServiceImpl implements ReportCommonService {
|
|
|
@Override
|
|
|
public List<SurveyTeacherGradeDistributionResult> surveyTeacherDistribution(Long examId, String courseCode, Long collegeId, boolean filter) {
|
|
|
List<SurveyTeacherGradeDistributionResult> surveyTeacherGradeDistributionResultList = new ArrayList<>();
|
|
|
- List<SurveyTeacherDistributionResult> surveyTeacherDistributionResultList = taExamCourseRecordService.surveyTeacherDistribution(examId, courseCode, filter);
|
|
|
+ List<SurveyTeacherDistributionResult> surveyTeacherDistributionResultList = taExamCourseRecordService.surveyTeacherDistribution(examId, courseCode, filter, collegeId);
|
|
|
if (Objects.isNull(surveyTeacherDistributionResultList) && surveyTeacherDistributionResultList.size() > 0) {
|
|
|
return null;
|
|
|
}
|
|
@@ -340,12 +340,12 @@ public class ReportCommonServiceImpl implements ReportCommonService {
|
|
|
if (SystemConstant.longNotNull(collegeId) && !SystemConstant.longNotNull(teacherId)) {
|
|
|
// 有学院id无教师id -> 开课院长看各考察学院数据
|
|
|
dimensionInfoDatasource = tbDimensionService.findDimensionInfo(examId, courseCode, collegeId);
|
|
|
- } else if (SystemConstant.longNotNull(teacherId) && !SystemConstant.longNotNull(collegeId)){
|
|
|
+ } else if (SystemConstant.longNotNull(teacherId) && !SystemConstant.longNotNull(collegeId)) {
|
|
|
// 有教师id无学院id -> 开课院长看各授课教师数据
|
|
|
dimensionInfoDatasource = tbDimensionService.findDimensionByTeacherInfo(examId, courseCode, teacherId);
|
|
|
- } else if (SystemConstant.longNotNull(teacherId) && SystemConstant.longNotNull(collegeId)){
|
|
|
+ } else if (SystemConstant.longNotNull(teacherId) && SystemConstant.longNotNull(collegeId)) {
|
|
|
// 既有教师id又有学院id -> 任课教师看某个学院下自己的数据
|
|
|
- dimensionInfoDatasource = tbDimensionService.findDimensionByTeacherCollegeInfo(examId,courseCode,teacherId,collegeId);
|
|
|
+ dimensionInfoDatasource = tbDimensionService.findDimensionByTeacherCollegeInfo(examId, courseCode, teacherId, collegeId);
|
|
|
}
|
|
|
// if (dimensionInfoDatasource.size() < 1) {
|
|
|
// throw ExceptionResultEnum.DATA_ERROR.exception();
|
|
@@ -392,7 +392,7 @@ public class ReportCommonServiceImpl implements ReportCommonService {
|
|
|
if (SystemConstant.longNotNull(collegeId) && !SystemConstant.longNotNull(teacherId)) {
|
|
|
// 有学院id无教师id -> 开课院长看各考察学院数据
|
|
|
answerDetailDatasource = taExamCourseDifficultService.findValidAnswerDetail(examId, courseCode, collegeId);
|
|
|
- } else if (SystemConstant.longNotNull(teacherId) && !SystemConstant.longNotNull(collegeId)){
|
|
|
+ } else if (SystemConstant.longNotNull(teacherId) && !SystemConstant.longNotNull(collegeId)) {
|
|
|
// 有教师id无学院id -> 开课院长看各授课教师数据
|
|
|
answerDetailDatasource = taExamCourseTeacherDifficultService.findValidAnswerDetail(examId, courseCode, teacherId);
|
|
|
} else if (SystemConstant.longNotNull(teacherId) && SystemConstant.longNotNull(collegeId)) {
|