From 85df63f9af34ae4cbac1df076eade54f5a1bd37b Mon Sep 17 00:00:00 2001 From: zhaokai Date: Fri, 6 Mar 2026 09:02:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(study):=20=E8=A7=A3=E5=86=B3=E5=AD=A6?= =?UTF-8?q?=E7=94=9F=E8=80=83=E8=AF=95=E8=AE=B0=E5=BD=95=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edu/command/query/study/StudentExamRecordQueryExe.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web-app/src/main/java/com/zcloud/edu/command/query/study/StudentExamRecordQueryExe.java b/web-app/src/main/java/com/zcloud/edu/command/query/study/StudentExamRecordQueryExe.java index e7d7652..70e158c 100644 --- a/web-app/src/main/java/com/zcloud/edu/command/query/study/StudentExamRecordQueryExe.java +++ b/web-app/src/main/java/com/zcloud/edu/command/query/study/StudentExamRecordQueryExe.java @@ -48,6 +48,9 @@ public class StudentExamRecordQueryExe { } public SingleResponse executeGetInfoByStudentId(String studentId){ StudentExamRecordDO studentExamRecordDO = studentExamRecordRepository.getInfoByStudentId(studentId); + if(studentExamRecordDO == null){ + return SingleResponse.of(null); + } StudentExamRecordCO studentExamRecordCO = new StudentExamRecordCO(); BeanUtils.copyProperties(studentExamRecordDO, studentExamRecordCO); List recordList = studentExamRecordItemRepository.listByExamRecordId(studentExamRecordDO.getStudentExamRecordId());