|
@@ -177,7 +177,7 @@ public class TCPaperStructController {
|
|
TCPaperStruct tcPaperStructDb = tcPaperStructService.queryPaperStruct(paperStructParams.getCultureProgramId(), paperStructParams.getCourseId(), paperStructParams.getPaperNumber());
|
|
TCPaperStruct tcPaperStructDb = tcPaperStructService.queryPaperStruct(paperStructParams.getCultureProgramId(), paperStructParams.getCourseId(), paperStructParams.getPaperNumber());
|
|
if (Objects.isNull(tcPaperStructDb)) {
|
|
if (Objects.isNull(tcPaperStructDb)) {
|
|
MarkPaper markPaper = printCommonService.getMarkPaper(paperStructParams.getExamId(), paperStructParams.getCourseCode(), paperStructParams.getPaperNumber(), paperStructParams.getCourseId());
|
|
MarkPaper markPaper = printCommonService.getMarkPaper(paperStructParams.getExamId(), paperStructParams.getCourseCode(), paperStructParams.getPaperNumber(), paperStructParams.getCourseId());
|
|
- tcPaperStructDb = new TCPaperStruct(paperStructParams.getCultureProgramId(), paperStructParams.getCourseId(), paperStructParams.getCourseCode(), markPaper.getCourseName(), paperStructParams.getPaperNumber(), JacksonUtil.parseJson(paperStructParams.getPaperStruct()), sysUser.getId(), obeCourseWeightResult.getDimensionSign());
|
|
|
|
|
|
+ tcPaperStructDb = new TCPaperStruct(paperStructParams.getExamId(), paperStructParams.getCultureProgramId(), paperStructParams.getCourseId(), paperStructParams.getCourseCode(), markPaper.getCourseName(), paperStructParams.getPaperNumber(), JacksonUtil.parseJson(paperStructParams.getPaperStruct()), sysUser.getId(), obeCourseWeightResult.getDimensionSign());
|
|
tcPaperStructService.save(tcPaperStructDb);
|
|
tcPaperStructService.save(tcPaperStructDb);
|
|
} else {
|
|
} else {
|
|
TCPaperStruct tcPaperStructSource = new TCPaperStruct();
|
|
TCPaperStruct tcPaperStructSource = new TCPaperStruct();
|
|
@@ -211,7 +211,7 @@ public class TCPaperStructController {
|
|
}
|
|
}
|
|
paperStructDimensionResultList = new ArrayList<>(markQuestionList.size());
|
|
paperStructDimensionResultList = new ArrayList<>(markQuestionList.size());
|
|
for (MarkQuestion markQuestion : markQuestionList) {
|
|
for (MarkQuestion markQuestion : markQuestionList) {
|
|
- paperStructDimensionResultList.add(new PaperStructDimensionResult(markQuestion.getMainNumber(), markQuestion.getSubNumber(), markQuestion.getPaperNumber(), new BigDecimal(markQuestion.getTotalScore())));
|
|
|
|
|
|
+ paperStructDimensionResultList.add(new PaperStructDimensionResult(markQuestion.getMainNumber(), markQuestion.getSubNumber(),examId, markQuestion.getPaperNumber(), new BigDecimal(markQuestion.getTotalScore())));
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
ObeCourseWeightResult obeCourseWeightResult = trBasicInfoService.findCourseWeightResultRmi(obeCourseOutline.getId());
|
|
ObeCourseWeightResult obeCourseWeightResult = trBasicInfoService.findCourseWeightResultRmi(obeCourseOutline.getId());
|
|
@@ -243,7 +243,7 @@ public class TCPaperStructController {
|
|
}.getType());
|
|
}.getType());
|
|
paperStructDimensionResultList = new ArrayList<>(paperStructDtoList.size());
|
|
paperStructDimensionResultList = new ArrayList<>(paperStructDtoList.size());
|
|
for (PaperStructDto paperStructDto : paperStructDtoList) {
|
|
for (PaperStructDto paperStructDto : paperStructDtoList) {
|
|
- paperStructDimensionResultList.add(new PaperStructDimensionResult(paperStructDto.getMainNumber(), paperStructDto.getSubNumber(), tcPaperStruct.getPaperNumber(), new BigDecimal(paperStructDto.getScore())));
|
|
|
|
|
|
+ paperStructDimensionResultList.add(new PaperStructDimensionResult(paperStructDto.getMainNumber(), paperStructDto.getSubNumber(),tcPaperStruct.getExamId(), tcPaperStruct.getPaperNumber(), new BigDecimal(paperStructDto.getScore())));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return paperStructDimensionResultList;
|
|
return paperStructDimensionResultList;
|