|
@@ -115,12 +115,13 @@ public class TRBasicInfoController {
|
|
@Transactional
|
|
@Transactional
|
|
public Result reportView(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
public Result reportView(@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) {
|
|
|
|
|
|
+ @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
|
|
+ @ApiParam(value = "教学课程id", required = true) @RequestParam Long teachCourseId) {
|
|
MarkPaper markPaper = printCommonService.getMarkPaper(examId, paperNumber);
|
|
MarkPaper markPaper = printCommonService.getMarkPaper(examId, paperNumber);
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
TRBasicInfo trBasicInfo = trBasicInfoService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
TRBasicInfo trBasicInfo = trBasicInfoService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
|
|
|
|
- CourseWeightResult courseWeightResult = trBasicInfoService.findCourseWeightResultRmi(examId, courseCode);
|
|
|
|
|
|
+ CourseWeightResult courseWeightResult = trBasicInfoService.findCourseWeightResultRmi(teachCourseId);
|
|
TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
if (Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getPaperStructDimension())) {
|
|
if (Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getPaperStructDimension())) {
|
|
List<PaperStructDimensionResult> paperStructDimensionResultList = GsonUtil.fromJson(tcPaperStruct.getPaperStructDimension(), new TypeToken<List<PaperStructDimensionResult>>() {
|
|
List<PaperStructDimensionResult> paperStructDimensionResultList = GsonUtil.fromJson(tcPaperStruct.getPaperStructDimension(), new TypeToken<List<PaperStructDimensionResult>>() {
|
|
@@ -180,7 +181,7 @@ public class TRBasicInfoController {
|
|
if (Objects.isNull(trBasicInfoDb)) {
|
|
if (Objects.isNull(trBasicInfoDb)) {
|
|
trBasicInfoDb = new TRBasicInfo(trBasicInfo, sysUser.getId());
|
|
trBasicInfoDb = new TRBasicInfo(trBasicInfo, sysUser.getId());
|
|
MarkPaper markPaper = printCommonService.getMarkPaper(trBasicInfo.getExamId(), trBasicInfo.getPaperNumber());
|
|
MarkPaper markPaper = printCommonService.getMarkPaper(trBasicInfo.getExamId(), trBasicInfo.getPaperNumber());
|
|
- trBasicInfoDb = trBasicInfoService.getReportView(trBasicInfoDb, markPaper, sysUser.getId(), trBasicInfoService.findCourseWeightResultRmi(trBasicInfo.getExamId(), trBasicInfo.getCourseCode()));
|
|
|
|
|
|
+ trBasicInfoDb = trBasicInfoService.getReportView(trBasicInfoDb, markPaper, sysUser.getId(), trBasicInfoService.findCourseWeightResultRmi(trBasicInfo.getTeachCourseId()));
|
|
} else {
|
|
} else {
|
|
trBasicInfoDb.updateInfo(trBasicInfo, sysUser.getId());
|
|
trBasicInfoDb.updateInfo(trBasicInfo, sysUser.getId());
|
|
}
|
|
}
|
|
@@ -206,7 +207,8 @@ public class TRBasicInfoController {
|
|
@Aac(rateLimit = @RateLimit(count = 1, period = 1000L))
|
|
@Aac(rateLimit = @RateLimit(count = 1, period = 1000L))
|
|
public void reportExport(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
public void reportExport(@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,
|
|
|
|
+ @ApiParam(value = "教学课程id", required = true) @RequestParam Long teachCourseId) throws IOException {
|
|
File txtFileTemp = null, fileTemp = null;
|
|
File txtFileTemp = null, fileTemp = null;
|
|
try {
|
|
try {
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
@@ -217,7 +219,7 @@ public class TRBasicInfoController {
|
|
Objects.requireNonNull(trBasicInfo.getCourseEvaluationResult(), "没有课程目标信息");
|
|
Objects.requireNonNull(trBasicInfo.getCourseEvaluationResult(), "没有课程目标信息");
|
|
Objects.requireNonNull(trBasicInfo.getCourseEvaluationResultDetail(), "没有课程考生信息");
|
|
Objects.requireNonNull(trBasicInfo.getCourseEvaluationResultDetail(), "没有课程考生信息");
|
|
|
|
|
|
- CourseWeightResult courseWeightResult = trBasicInfoService.findCourseWeightResultRmi(examId, courseCode);
|
|
|
|
|
|
+ CourseWeightResult courseWeightResult = trBasicInfoService.findCourseWeightResultRmi(teachCourseId);
|
|
TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
TCPaperStruct tcPaperStruct = tcPaperStructService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
if (Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getPaperStructDimension())) {
|
|
if (Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getPaperStructDimension())) {
|
|
List<PaperStructDimensionResult> paperStructDimensionResultList = GsonUtil.fromJson(tcPaperStruct.getPaperStructDimension(), new TypeToken<List<PaperStructDimensionResult>>() {
|
|
List<PaperStructDimensionResult> paperStructDimensionResultList = GsonUtil.fromJson(tcPaperStruct.getPaperStructDimension(), new TypeToken<List<PaperStructDimensionResult>>() {
|
|
@@ -237,8 +239,8 @@ public class TRBasicInfoController {
|
|
if (Objects.nonNull(reportCourseEvaluationResultDto.getWeightSettingSign()) && reportCourseEvaluationResultDto.getWeightSettingSign().longValue() != courseWeightResult.getWeightSettingSign().longValue()) {
|
|
if (Objects.nonNull(reportCourseEvaluationResultDto.getWeightSettingSign()) && reportCourseEvaluationResultDto.getWeightSettingSign().longValue() != courseWeightResult.getWeightSettingSign().longValue()) {
|
|
printCommonService.getMarkPaper(examId, paperNumber);
|
|
printCommonService.getMarkPaper(examId, paperNumber);
|
|
trBasicInfoService.clearReportData(examId, courseCode, paperNumber, Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getDimensionSign()) && tcPaperStruct.getDimensionSign().longValue() != courseWeightResult.getDimensionSign().longValue() ? true : false);
|
|
trBasicInfoService.clearReportData(examId, courseCode, paperNumber, Objects.nonNull(tcPaperStruct) && Objects.nonNull(tcPaperStruct.getDimensionSign()) && tcPaperStruct.getDimensionSign().longValue() != courseWeightResult.getDimensionSign().longValue() ? true : false);
|
|
- this.reportView(examId, courseCode, paperNumber);
|
|
|
|
- this.reportExport(examId, courseCode, paperNumber);
|
|
|
|
|
|
+ this.reportView(examId, courseCode, paperNumber, teachCourseId);
|
|
|
|
+ this.reportExport(examId, courseCode, paperNumber, teachCourseId);
|
|
} else {
|
|
} else {
|
|
//评价样本的基本信息
|
|
//评价样本的基本信息
|
|
String period = Objects.nonNull(trBasicInfo.getPeriod()) ? trBasicInfo.getPeriod() : null;
|
|
String period = Objects.nonNull(trBasicInfo.getPeriod()) ? trBasicInfo.getPeriod() : null;
|
|
@@ -316,7 +318,8 @@ public class TRBasicInfoController {
|
|
public Result reportDataChange(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
public Result reportDataChange(@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,
|
|
@ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
- @ApiParam(value = "true:报告,false:成绩管理", required = true) @RequestParam boolean report) throws IOException {
|
|
|
|
|
|
+ @ApiParam(value = "true:报告,false:成绩管理", required = true) @RequestParam boolean report,
|
|
|
|
+ @ApiParam(value = "教学课程id", required = true) @RequestParam Long teachCourseId) throws IOException {
|
|
ReportChangeResult reportChangeResult = new ReportChangeResult();
|
|
ReportChangeResult reportChangeResult = new ReportChangeResult();
|
|
List<TCUsualScore> tcUsualScoreList = tcUsualScoreService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
List<TCUsualScore> tcUsualScoreList = tcUsualScoreService.queryByExamIdAndCourseCodeAndPaperNumber(examId, courseCode, paperNumber);
|
|
if (CollectionUtils.isNotEmpty(tcUsualScoreList)) {
|
|
if (CollectionUtils.isNotEmpty(tcUsualScoreList)) {
|
|
@@ -325,7 +328,7 @@ public class TRBasicInfoController {
|
|
List<TCUsualScoreDto> tcUsualScoreDtoList = JSONArray.parseArray(tcUsualScore.getScore(), TCUsualScoreDto.class);
|
|
List<TCUsualScoreDto> tcUsualScoreDtoList = JSONArray.parseArray(tcUsualScore.getScore(), TCUsualScoreDto.class);
|
|
List<String> usualScoreList = tcUsualScoreDtoList.stream().map(s -> s.getName()).collect(Collectors.toList());
|
|
List<String> usualScoreList = tcUsualScoreDtoList.stream().map(s -> s.getName()).collect(Collectors.toList());
|
|
|
|
|
|
- List<CourseWeightDto> courseWeightDtoList = trBasicInfoService.findCourseWeightDtoRmi(examId, courseCode);
|
|
|
|
|
|
+ List<CourseWeightDto> courseWeightDtoList = trBasicInfoService.findCourseWeightDtoRmi(teachCourseId);
|
|
List<String> courseTargetList = new ArrayList<>(courseWeightDtoList.size());
|
|
List<String> courseTargetList = new ArrayList<>(courseWeightDtoList.size());
|
|
if (CollectionUtils.isNotEmpty(courseWeightDtoList)) {
|
|
if (CollectionUtils.isNotEmpty(courseWeightDtoList)) {
|
|
courseWeightDtoList.stream().peek(e -> {
|
|
courseWeightDtoList.stream().peek(e -> {
|