|
@@ -12,6 +12,7 @@ import com.qmth.teachcloud.report.business.entity.TBDimension;
|
|
|
import com.qmth.teachcloud.report.business.entity.TBExamCourse;
|
|
|
import com.qmth.teachcloud.report.business.entity.TBPaper;
|
|
|
import com.qmth.teachcloud.report.business.enums.GradeScopeEnum;
|
|
|
+import com.qmth.teachcloud.report.business.enums.PaperStructJudgeEnum;
|
|
|
import com.qmth.teachcloud.report.business.enums.PiecewiseScopeEnum;
|
|
|
import com.qmth.teachcloud.report.business.enums.PublishStatusEnum;
|
|
|
import com.qmth.teachcloud.report.business.service.*;
|
|
@@ -432,7 +433,7 @@ public class ReportCommonServiceImpl implements ReportCommonService {
|
|
|
.eq(TBDimension::getCourseCode, courseCode);
|
|
|
List<TBDimension> dimensionDataSource = tbDimensionService.list(tbDimensionQueryWrapper);
|
|
|
|
|
|
- Set<String> paperTypeSet = questionDatasource.stream().map(e -> e.getPaperType()).collect(Collectors.toSet());
|
|
|
+ Set<String> paperTypeSet = questionDatasource.stream().map(TBPaperStructResult::getPaperType).collect(Collectors.toSet());
|
|
|
List<QuestionResult> questionList = new ArrayList<>();
|
|
|
for (String paperType : paperTypeSet) {
|
|
|
List<TBPaperStructResult> cellList = questionDatasource.stream()
|
|
@@ -441,9 +442,11 @@ public class ReportCommonServiceImpl implements ReportCommonService {
|
|
|
for (TBPaperStructResult cell : cellList) {
|
|
|
cell.setPaperType(null);
|
|
|
}
|
|
|
-
|
|
|
+ List<TBPaperStructResult> errorCellList = cellList.stream().filter(e -> PaperStructJudgeEnum.NOT_QUITE_RIGHT.equals(e.getPaperStructJudge())).collect(Collectors.toList());
|
|
|
Set<String> knowledgeDimensionSet = new HashSet<>(), abilityDimensionSet = new HashSet<>();
|
|
|
- for (TBPaperStructResult cell : cellList) {
|
|
|
+
|
|
|
+ // 获取考察点集合
|
|
|
+ for (TBPaperStructResult cell : errorCellList) {
|
|
|
String knowledgeDimension = cell.getKnowledgeDimension();
|
|
|
String[] arr = knowledgeDimension.split(",");
|
|
|
knowledgeDimensionSet.addAll(Arrays.asList(arr));
|
|
@@ -462,11 +465,11 @@ public class ReportCommonServiceImpl implements ReportCommonService {
|
|
|
String dimensionName = "";
|
|
|
List<String> nameTwoList = dimensionDataSource.stream()
|
|
|
.filter(e -> dimensionCode.equals(e.getCodeSecond()))
|
|
|
- .map(e -> e.getNameSecond()).collect(Collectors.toList());
|
|
|
+ .map(TBDimension::getNameSecond).collect(Collectors.toList());
|
|
|
if (nameTwoList.size() < 1) {
|
|
|
List<String> tmpList = dimensionDataSource.stream()
|
|
|
.filter(e -> dimensionCode.equals(e.getCodePrimary()))
|
|
|
- .map(e -> e.getNamePrimary()).collect(Collectors.toList());
|
|
|
+ .map(TBDimension::getNamePrimary).collect(Collectors.toList());
|
|
|
if (tmpList.size() == 0) {
|
|
|
continue;
|
|
|
}
|
|
@@ -482,11 +485,11 @@ public class ReportCommonServiceImpl implements ReportCommonService {
|
|
|
String dimensionName = "";
|
|
|
List<String> nameTwoList = dimensionDataSource.stream()
|
|
|
.filter(e -> dimensionCode.equals(e.getCodeSecond()))
|
|
|
- .map(e -> e.getNameSecond()).collect(Collectors.toList());
|
|
|
+ .map(TBDimension::getNameSecond).collect(Collectors.toList());
|
|
|
if (nameTwoList.size() < 1) {
|
|
|
List<String> tmpList = dimensionDataSource.stream()
|
|
|
.filter(e -> dimensionCode.equals(e.getCodePrimary()))
|
|
|
- .map(e -> e.getNamePrimary()).collect(Collectors.toList());
|
|
|
+ .map(TBDimension::getNamePrimary).collect(Collectors.toList());
|
|
|
if (tmpList.size() == 0) {
|
|
|
continue;
|
|
|
}
|