|
@@ -173,8 +173,8 @@ public class TRBasicInfoController {
|
|
|
CourseReportBean courseReportBean = new CourseReportBean(trBasicInfo.getOpenTime() + "《测试输出报告》", courseBasicBean);
|
|
|
|
|
|
//targetMap
|
|
|
- List<ReportCourseTargetDto> reportCourseTargetDtoList = JSONArray.parseArray(trBasicInfo.getCourseEvaluationResultDetail(), ReportCourseTargetDto.class);
|
|
|
- Map<Long, ReportCourseTargetDto> courseTargetValueDtoMap = reportCourseTargetDtoList.stream().collect(Collectors.toMap(ReportCourseTargetDto::getTargetId, Function.identity(), (dto1, dto2) -> dto1));
|
|
|
+ List<CourseTargetValueDto> courseTargetValueDtoList = JSONArray.parseArray(trBasicInfo.getCourseEvaluationResultDetail(), CourseTargetValueDto.class);
|
|
|
+// Map<Long, CourseTargetValueDto> courseTargetValueDtoMap = courseTargetValueDtoList.stream().collect(Collectors.toMap(CourseTargetValueDto::getTargetId, Function.identity(), (dto1, dto2) -> dto1));
|
|
|
|
|
|
//table1课程目标目标与毕业要求指标点的对应关系
|
|
|
RowRenderData header1 = Rows.of("课程目标", "毕业要求指标点").bgColor("F2F2F2").center().create();
|
|
@@ -185,9 +185,8 @@ public class TRBasicInfoController {
|
|
|
header2_2List.addAll(header2_1List);
|
|
|
header2_1List.add("考核/评价环节及目标分值");
|
|
|
|
|
|
- for (int i = 0; i < reportCourseTargetDtoList.size(); i++) {
|
|
|
- ReportCourseTargetDto reportCourseTargetDto = reportCourseTargetDtoList.get(i);
|
|
|
- CourseTargetValueDto courseTargetValueDto = reportCourseTargetDto.getCourseTargetValueDto();
|
|
|
+ for (int i = 0; i < courseTargetValueDtoList.size(); i++) {
|
|
|
+ CourseTargetValueDto courseTargetValueDto = courseTargetValueDtoList.get(i);
|
|
|
Map<String, BigDecimal> usualScoreWeightMap = courseTargetValueDto.getUsualScoreWeight();
|
|
|
usualScoreWeightMap.forEach((k1, v1) -> {
|
|
|
header2_1List.add("");
|
|
@@ -216,9 +215,8 @@ public class TRBasicInfoController {
|
|
|
AtomicReference<BigDecimal> examSum = new AtomicReference<>(new BigDecimal(0));
|
|
|
AtomicReference<BigDecimal> targetSum2 = new AtomicReference<>(new BigDecimal(0));
|
|
|
AtomicInteger atomicReference = new AtomicInteger(0);
|
|
|
- for (int i = 0; i < reportCourseTargetDtoList.size(); i++) {
|
|
|
- ReportCourseTargetDto reportCourseTargetDto = reportCourseTargetDtoList.get(i);
|
|
|
- CourseTargetValueDto courseTargetValueDto = reportCourseTargetDto.getCourseTargetValueDto();
|
|
|
+ for (int i = 0; i < courseTargetValueDtoList.size(); i++) {
|
|
|
+ CourseTargetValueDto courseTargetValueDto = courseTargetValueDtoList.get(i);
|
|
|
CourseTargetTableBean2 courseTargetTableBean2 = new CourseTargetTableBean2(courseTargetValueDto.getTargetName(), courseTargetValueDto.getGraduationRequirement(), new BigDecimal(atomicReference.get() + 2), new BigDecimal(atomicReference.get() + 3), new BigDecimal(atomicReference.get() + 4), new BigDecimal(atomicReference.get() + 5), new BigDecimal(atomicReference.get() + 10));
|
|
|
bigDecimalExpressionSum.set(bigDecimalExpressionSum.get().add(courseTargetTableBean2.getExpression()));
|
|
|
homeworkSum.set(homeworkSum.get().add(courseTargetTableBean2.getHomework()));
|
|
@@ -298,9 +296,8 @@ public class TRBasicInfoController {
|
|
|
List<CourseTargetTableBean4> courseTargetTableBean4List = new ArrayList<>();
|
|
|
BigDecimal sum4 = new BigDecimal(0);
|
|
|
Integer seq4 = 0;
|
|
|
- for (int i = 0; i < reportCourseTargetDtoList.size(); i++) {
|
|
|
- ReportCourseTargetDto reportCourseTargetDto = reportCourseTargetDtoList.get(i);
|
|
|
- CourseTargetValueDto courseTargetValueDto = reportCourseTargetDto.getCourseTargetValueDto();
|
|
|
+ for (int i = 0; i < courseTargetValueDtoList.size(); i++) {
|
|
|
+ CourseTargetValueDto courseTargetValueDto = courseTargetValueDtoList.get(i);
|
|
|
List<DimensionDto> dimensionDtoList = courseTargetValueDto.getDimensionList();
|
|
|
for (DimensionDto dimensionDto : dimensionDtoList) {
|
|
|
sum4 = sum4.add(new BigDecimal(dimensionDto.getDimensionScore()));
|
|
@@ -365,7 +362,6 @@ public class TRBasicInfoController {
|
|
|
|
|
|
List<ExamStudentTableBean> examStudentTableBeanList = new ArrayList<>();
|
|
|
int seq5 = 0;
|
|
|
-// AtomicInteger usualScoreSize = new AtomicInteger(1);
|
|
|
Map<Long, Integer> targetUsualScoreSizeMap = new HashMap<>();
|
|
|
trExamStudentList.remove(trExamStudentList.size() - 1);
|
|
|
TRExamStudent trExamStudentTemp = trExamStudentList.get(0);
|
|
@@ -492,12 +488,9 @@ public class TRBasicInfoController {
|
|
|
}
|
|
|
examStudent_cells_3.add(Cells.of(e.getSumScore().toString()).create());
|
|
|
examStudent_cells_4.add(Cells.of(e.getSumScore().toString()).create());
|
|
|
- examStudent_cells_3.add(Cells.of("").create());
|
|
|
- examStudent_cells_4.add(Cells.of("").create());
|
|
|
examStudent_cells_5.add(Cells.of("").create());
|
|
|
}
|
|
|
examStudent_cells.add(Cells.of(e.getSumScore().toString()).create());
|
|
|
- examStudent_cells.add(Cells.of("").create());
|
|
|
examStudent_row.setCells(examStudent_cells);
|
|
|
examStudent_row.setRowStyle(this.getRowStyle());
|
|
|
rowRenderDataExamStudent[i + 2] = examStudent_row;
|