|
@@ -62,8 +62,7 @@ public class TCScoreEndExamController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "下载成功", response = Object.class)})
|
|
|
public void endExamTemplateDownload(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
|
- @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
|
- @ApiParam(value = "试卷类型", required = true) @RequestParam String paperType) throws IOException {
|
|
|
+ @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber) throws IOException {
|
|
|
List<ExcelField> excelFieldList = new ArrayList<>();
|
|
|
excelFieldList.add(new ExcelField("examNumber", "学号", true));
|
|
|
excelFieldList.add(new ExcelField("name", "姓名", true));
|
|
@@ -84,11 +83,10 @@ public class TCScoreEndExamController {
|
|
|
public Object scoreEndExamImport(@ApiParam(value = "上传文件", required = true) @RequestParam MultipartFile file,
|
|
|
@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
|
- @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
|
- @ApiParam(value = "试卷类型", required = true) @RequestParam String paperType) throws IOException {
|
|
|
+ @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber) throws IOException {
|
|
|
log.debug("导入Excel开始...");
|
|
|
long start = System.currentTimeMillis();
|
|
|
- MarkPaper markPaper = tcScoreNormalService.importExcelVaild(file, examId, paperNumber, paperType);
|
|
|
+ MarkPaper markPaper = tcScoreNormalService.importExcelVaild(file, examId, paperNumber);
|
|
|
|
|
|
Map<String, String> messageMap = new LinkedHashMap<>();
|
|
|
try {
|
|
@@ -117,7 +115,7 @@ public class TCScoreEndExamController {
|
|
|
Map<String, String> objectMap = list.get(i);
|
|
|
boolean error = false;
|
|
|
JSONArray jsonArray = new JSONArray();
|
|
|
- TCScoreEndExam tcScoreEndExam = new TCScoreEndExam(examId, courseCode, markPaper.getCourseName(), paperNumber, paperType, sysUser.getId());
|
|
|
+ TCScoreEndExam tcScoreEndExam = new TCScoreEndExam(examId, courseCode, markPaper.getCourseName(), paperNumber, sysUser.getId());
|
|
|
for (Map.Entry<String, String> entry : objectMap.entrySet()) {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
if (Objects.isNull(entry.getValue()) || Objects.equals(entry.getValue().trim(), "")) {
|
|
@@ -153,8 +151,7 @@ public class TCScoreEndExamController {
|
|
|
tcScoreEndExamQueryWrapper.lambda().eq(TCScoreEndExam::getExamId, examId)
|
|
|
.eq(TCScoreEndExam::getCourseCode, courseCode)
|
|
|
.eq(TCScoreEndExam::getCourseName, markPaper.getCourseName())
|
|
|
- .eq(TCScoreEndExam::getPaperNumber, paperNumber)
|
|
|
- .eq(TCScoreEndExam::getPaperType, paperType);
|
|
|
+ .eq(TCScoreEndExam::getPaperNumber, paperNumber);
|
|
|
tcScoreEndExamService.remove(tcScoreEndExamQueryWrapper);
|
|
|
tcScoreEndExamService.saveBatch(tcScoreEndExamList);
|
|
|
}
|
|
@@ -185,7 +182,6 @@ public class TCScoreEndExamController {
|
|
|
public Object scoreEndExamList(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
|
@ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
|
- @ApiParam(value = "试卷类型", required = true) @RequestParam String paperType,
|
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) throws IOException {
|
|
|
return ResultUtil.ok(true);
|
|
@@ -232,8 +228,7 @@ public class TCScoreEndExamController {
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "试卷蓝图保存", response = Object.class)})
|
|
|
public Object scoreEndExamPaperPositiveQuery(@ApiParam(value = "考试id", required = true) @RequestParam Long examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
|
- @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber,
|
|
|
- @ApiParam(value = "试卷类型", required = true) @RequestParam String paperType) throws IOException {
|
|
|
+ @ApiParam(value = "试卷编号", required = true) @RequestParam String paperNumber) throws IOException {
|
|
|
return ResultUtil.ok(true);
|
|
|
}
|
|
|
}
|