|
@@ -157,7 +157,7 @@ public class TCPaperStructController {
|
|
Objects.requireNonNull(c.getTotalWeight(), "[" + c.getCourseTargetName() + "]未设置权重");
|
|
Objects.requireNonNull(c.getTotalWeight(), "[" + c.getCourseTargetName() + "]未设置权重");
|
|
Objects.requireNonNull(c.getTotalScore(), "[" + c.getCourseTargetName() + "]未设置目标分值");
|
|
Objects.requireNonNull(c.getTotalScore(), "[" + c.getCourseTargetName() + "]未设置目标分值");
|
|
if (new BigDecimal(score).compareTo(c.getTotalWeight()) == 1) {
|
|
if (new BigDecimal(score).compareTo(c.getTotalWeight()) == 1) {
|
|
- throw ExceptionResultEnum.ERROR.exception("[" + c.getCourseTargetName() + "]知识点小题总分大于该课程目标分,请重新设置");
|
|
|
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("[" + c.getCourseTargetName() + "]包含的小题总分与权重设置不一致,请到期末成绩--试卷蓝图设置里调整");
|
|
}
|
|
}
|
|
paperStructDimensionResultList.stream().filter(s -> {
|
|
paperStructDimensionResultList.stream().filter(s -> {
|
|
if (Objects.equals(s.getCourseTargetName(), c.getCourseTargetName())) {
|
|
if (Objects.equals(s.getCourseTargetName(), c.getCourseTargetName())) {
|
|
@@ -193,7 +193,6 @@ public class TCPaperStructController {
|
|
public Result finalScorePaperStructQuery(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
public Result finalScorePaperStructQuery(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
@ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber) throws IOException {
|
|
@ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber) throws IOException {
|
|
- printCommonService.getLock(examId, courseCode, paperNumber);
|
|
|
|
List<PaperStructDimensionResult> paperStructDimensionResultList = null;
|
|
List<PaperStructDimensionResult> paperStructDimensionResultList = null;
|
|
TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
if (Objects.isNull(tcPaperStruct) || (Objects.isNull(tcPaperStruct.getPaperStruct()) && Objects.isNull(tcPaperStruct.getPaperStructDimension()))) {
|
|
if (Objects.isNull(tcPaperStruct) || (Objects.isNull(tcPaperStruct.getPaperStruct()) && Objects.isNull(tcPaperStruct.getPaperStructDimension()))) {
|