From b431c00a3e736e27599cd34793c65369fdb7b8cd Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Thu, 04 Jan 2024 15:50:50 +0800
Subject: [PATCH] 模拟成绩查询修改
---
src/main/java/org/springblade/modules/exam/controller/ScoreAuditRecordsController.java | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/exam/controller/ScoreAuditRecordsController.java b/src/main/java/org/springblade/modules/exam/controller/ScoreAuditRecordsController.java
index c97e445..7e7bb2e 100644
--- a/src/main/java/org/springblade/modules/exam/controller/ScoreAuditRecordsController.java
+++ b/src/main/java/org/springblade/modules/exam/controller/ScoreAuditRecordsController.java
@@ -72,7 +72,7 @@
scoreAuditRecords.setStatus(1);
//查询成绩
ExamScore examScore = examScoreService.getById(scoreAuditRecords.getExamScoreId());
- scoreAuditRecords.setUserId(Long.parseLong(examScore.getUserId()));
+ scoreAuditRecords.setUserId(examScore.getUserId());
//申请并返回数据
return R.data(scoreAuditRecordsService.save(scoreAuditRecords));
}
@@ -138,5 +138,14 @@
return R.status(scoreAuditRecordsService.applyAudit(scoreAuditRecords));
}
+ /**
+ * 批量申请审核
+ * @param scoreAuditRecords 考试成绩修改申请记录审核
+ */
+ @PostMapping("/batchAudit")
+ public R batchAudit(@RequestBody ScoreAuditRecordsVO scoreAuditRecords){
+ return R.status(scoreAuditRecordsService.batchAudit(scoreAuditRecords));
+ }
+
}
--
Gitblit v1.9.3