|
@@ -19,6 +19,7 @@ import com.qmth.teachcloud.report.business.service.*;
|
|
import com.qmth.teachcloud.report.business.utils.AnalyzeScopeUtil;
|
|
import com.qmth.teachcloud.report.business.utils.AnalyzeScopeUtil;
|
|
import com.qmth.teachcloud.report.business.utils.ConversionUtils;
|
|
import com.qmth.teachcloud.report.business.utils.ConversionUtils;
|
|
import com.qmth.teachcloud.report.business.utils.MathUtil;
|
|
import com.qmth.teachcloud.report.business.utils.MathUtil;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@@ -253,6 +254,12 @@ public class AnalyzeForReportServiceImpl implements AnalyzeForReportService {
|
|
teachCollegeName = tbSchoolCollege.getName();
|
|
teachCollegeName = tbSchoolCollege.getName();
|
|
}
|
|
}
|
|
int inspectCollegeCount = inspectCollegeIdList.size();
|
|
int inspectCollegeCount = inspectCollegeIdList.size();
|
|
|
|
+ if (inspectCollegeIdList.size() == 0){
|
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("没有考察学院");
|
|
|
|
+ }
|
|
|
|
+ List<SysOrg> sysOrgList = sysOrgService.listByIds(inspectCollegeIdList);
|
|
|
|
+ String inspectCollegeNames = StringUtils.join(sysOrgList.stream().map(SysOrg::getName).collect(Collectors.toList()),',');
|
|
|
|
+
|
|
|
|
|
|
/*
|
|
/*
|
|
组装
|
|
组装
|
|
@@ -268,6 +275,7 @@ public class AnalyzeForReportServiceImpl implements AnalyzeForReportService {
|
|
taExamCourse.setTeachCollegeId(teachCollegeId);
|
|
taExamCourse.setTeachCollegeId(teachCollegeId);
|
|
taExamCourse.setTeachCollegeName(teachCollegeName);
|
|
taExamCourse.setTeachCollegeName(teachCollegeName);
|
|
taExamCourse.setInspectCollegeCount(inspectCollegeCount);
|
|
taExamCourse.setInspectCollegeCount(inspectCollegeCount);
|
|
|
|
+ taExamCourse.setInspectCollegeNames(inspectCollegeNames);
|
|
taExamCourse.setAvgScore(BigDecimal.valueOf(avgScore));
|
|
taExamCourse.setAvgScore(BigDecimal.valueOf(avgScore));
|
|
taExamCourse.setPassCount((int) passCount);
|
|
taExamCourse.setPassCount((int) passCount);
|
|
taExamCourse.setPassRate(passRate);
|
|
taExamCourse.setPassRate(passRate);
|