|
@@ -115,7 +115,6 @@ public class TRBasicInfoController {
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
|
@ApiParam(value = "试卷编号") @RequestParam(required = false) String paperNumber,
|
|
|
@ApiParam(value = "教学课程id", required = true) @RequestParam Long teachCourseId) {
|
|
|
- MarkPaper markPaper = printCommonService.getMarkPaper(examId, courseCode, paperNumber);
|
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
TRBasicInfo trBasicInfo = trBasicInfoService.queryBasicInfo(examId, courseCode, paperNumber, teachCourseId);
|
|
|
|
|
@@ -135,6 +134,7 @@ public class TRBasicInfoController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ MarkPaper markPaper = printCommonService.getMarkPaper(examId, courseCode, tcPaperStruct.getPaperNumber());
|
|
|
if (Objects.isNull(trBasicInfo)) {
|
|
|
trBasicInfo = trBasicInfoService.getReportView(trBasicInfo, markPaper, sysUser.getId(), courseWeightResult, teachCourseId);
|
|
|
} else {
|
|
@@ -178,7 +178,8 @@ public class TRBasicInfoController {
|
|
|
trBasicInfoDb = trBasicInfoService.queryBasicInfo(trBasicInfo.getExamId(), trBasicInfo.getCourseCode(), trBasicInfo.getPaperNumber(), trBasicInfo.getTeachCourseId());
|
|
|
if (Objects.isNull(trBasicInfoDb)) {
|
|
|
trBasicInfoDb = new TRBasicInfo(trBasicInfo, sysUser.getId());
|
|
|
- MarkPaper markPaper = printCommonService.getMarkPaper(trBasicInfo.getExamId(), trBasicInfo.getCourseCode(), trBasicInfo.getPaperNumber());
|
|
|
+ TCPaperStruct tcPaperStruct = tcPaperStructService.queryPaperStruct(trBasicInfo.getExamId(), trBasicInfo.getCourseCode(), trBasicInfo.getPaperNumber(), trBasicInfo.getTeachCourseId());
|
|
|
+ MarkPaper markPaper = printCommonService.getMarkPaper(trBasicInfo.getExamId(), trBasicInfo.getCourseCode(), Objects.nonNull(tcPaperStruct) ? tcPaperStruct.getPaperNumber() : trBasicInfo.getPaperNumber());
|
|
|
trBasicInfoDb = trBasicInfoService.getReportView(trBasicInfoDb, markPaper, sysUser.getId(), trBasicInfoService.findCourseWeightResultRmi(trBasicInfo.getTeachCourseId()), trBasicInfo.getTeachCourseId());
|
|
|
} else {
|
|
|
trBasicInfoDb.updateInfo(trBasicInfo, sysUser.getId());
|
|
@@ -235,7 +236,6 @@ public class TRBasicInfoController {
|
|
|
|
|
|
ReportCourseEvaluationResultDto reportCourseEvaluationResultDto = JSONObject.parseObject(trBasicInfo.getCourseEvaluationResult(), ReportCourseEvaluationResultDto.class);
|
|
|
if (Objects.nonNull(reportCourseEvaluationResultDto.getWeightSettingSign()) && reportCourseEvaluationResultDto.getWeightSettingSign().longValue() != courseWeightResult.getWeightSettingSign().longValue()) {
|
|
|
- printCommonService.getMarkPaper(examId, courseCode, paperNumber);
|
|
|
trBasicInfoService.clearReportData(examId, courseCode, paperNumber, teachCourseId, Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getDimensionSign()) && tcPaperStruct.getDimensionSign().longValue() != courseWeightResult.getDimensionSign().longValue() ? true : false);
|
|
|
this.reportView(examId, courseCode, paperNumber, teachCourseId);
|
|
|
this.reportExport(examId, courseCode, paperNumber, teachCourseId);
|