From 00daba6d5172b0ce475f7ea3f013ae426f8c7f0a Mon Sep 17 00:00:00 2001 From: youys <1272586223@qq.com> Date: Mon, 10 Feb 2025 15:16:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(sonar):=20studentid=E6=94=B9=E6=88=90userid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/educoder/ecsonar/model/vo/AnalyseDetailListVO.java | 4 +++- .../java/net/educoder/ecsonar/model/vo/AnalyseDetailVO.java | 4 +++- .../net/educoder/ecsonar/services/QualityInspectService.java | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailListVO.java b/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailListVO.java index ffb1fde..e5b121b 100644 --- a/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailListVO.java +++ b/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailListVO.java @@ -30,7 +30,9 @@ public class AnalyseDetailListVO extends PageVO { @NotBlank(message = "作业id不能为空") private String homeworkId; - @NotBlank(message = "学号不能为空") private String studentNo; + @NotBlank(message = "userId不能为空") + private String userId; + } diff --git a/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailVO.java b/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailVO.java index 1bf4f70..ffc01e3 100644 --- a/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailVO.java +++ b/src/main/java/net/educoder/ecsonar/model/vo/AnalyseDetailVO.java @@ -15,7 +15,9 @@ public class AnalyseDetailVO { @NotBlank(message = "作业id不能为空") private String homeworkId; - @NotBlank(message = "学号不能为空") private String studentNo; + @NotBlank(message = "userId不能为空") + private String userId; + } diff --git a/src/main/java/net/educoder/ecsonar/services/QualityInspectService.java b/src/main/java/net/educoder/ecsonar/services/QualityInspectService.java index 7e835eb..6bc3c61 100644 --- a/src/main/java/net/educoder/ecsonar/services/QualityInspectService.java +++ b/src/main/java/net/educoder/ecsonar/services/QualityInspectService.java @@ -234,7 +234,7 @@ public class QualityInspectService { */ public AnalyseDetailDTO getAnalyseDetail(AnalyseDetailVO analyseDetailVO) { // 作业id+学号 - String projectName = String.format("%s-%s", analyseDetailVO.getHomeworkId(), analyseDetailVO.getStudentNo()); + String projectName = String.format("%s-%s", analyseDetailVO.getHomeworkId(), analyseDetailVO.getUserId()); Project project = projectDao.findByName(projectName); if (project == null) { @@ -275,7 +275,7 @@ public class QualityInspectService { rollPage.setPageSize(analyseDetailListVO.getPageSize()); // 作业id+学号 - String projectName = String.format("%s-%s", analyseDetailListVO.getHomeworkId(), analyseDetailListVO.getStudentNo()); + String projectName = String.format("%s-%s", analyseDetailListVO.getHomeworkId(), analyseDetailListVO.getUserId()); Project project = projectDao.findByName(projectName); if (project == null) {