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();