From 3463ad539090d4a46e4cb8253b4bc8955bbb16f8 Mon Sep 17 00:00:00 2001 From: zhaokai Date: Sat, 7 Mar 2026 17:24:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(training):=20=E6=B7=BB=E5=8A=A0=E6=8C=89?= =?UTF-8?q?=E8=AE=B0=E5=BD=95ID=E5=88=97=E8=A1=A8=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=89=B9=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../command/query/archives/ArchivesQueryExe.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java b/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java index 74c5e22..d4b48b2 100644 --- a/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java +++ b/web-app/src/main/java/com/zcloud/edu/command/query/archives/ArchivesQueryExe.java @@ -167,12 +167,15 @@ public class ArchivesQueryExe { BeanUtils.copyProperties(personArchivesE, personArchivesDTO); if (qry.getTypeList().contains(5)) { StudentExamRecordDO studentExamRecordDO = studentExamRecordRepository.getInfoByStudentId(studentDO.getStudentId()); - StudentExamRecordCO studentExamRecordCO = new StudentExamRecordCO(); - BeanUtils.copyProperties(studentExamRecordDO, studentExamRecordCO); - List recordList = studentExamRecordItemRepository.listByExamRecordId(studentExamRecordDO.getStudentExamRecordId()); - List recordCoList = studentExamRecordItemCoConvertor.converDOsToCOs(recordList); - studentExamRecordCO.setExamRecordItemList(recordCoList); - personArchivesDTO.setStudentExamRecord(studentExamRecordCO); + if(studentExamRecordDO != null){ + StudentExamRecordCO studentExamRecordCO = new StudentExamRecordCO(); + BeanUtils.copyProperties(studentExamRecordDO, studentExamRecordCO); + List recordList = studentExamRecordItemRepository.listByExamRecordId(studentExamRecordDO.getStudentExamRecordId()); + List recordCoList = studentExamRecordItemCoConvertor.converDOsToCOs(recordList); + studentExamRecordCO.setExamRecordItemList(recordCoList); + personArchivesDTO.setStudentExamRecord(studentExamRecordCO); + } + } // 新增档案下载记录 ArchivesPdfFileE archivesPdfFileE = new ArchivesPdfFileE();