From c71a8e43bed328cc38bec8ef6b2ebd045e529425 Mon Sep 17 00:00:00 2001 From: zhaokai Date: Tue, 10 Mar 2026 10:25:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(archives):=20=E5=AE=9E=E7=8E=B0=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E6=A1=A3=E6=A1=88=E4=B8=8B=E8=BD=BD=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E4=BC=98=E5=8C=96=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 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 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 5975ea5..b903016 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 @@ -130,10 +130,11 @@ public class ArchivesQueryExe { ClassDO classDO = classRepository.getByClassId(studentDO.getClassId()); classE = new ClassE(); BeanUtils.copyProperties(classDO, classE); - + StringBuilder sb = new StringBuilder(); + if (qry.getTypeList().contains(1)) { + sb.append("-首页"); + } if (qry.getTypeList().contains(2) || qry.getTypeList().contains(3) || qry.getTypeList().contains(4)) { - - params.put("classId", studentDO.getClassId()); // 课程信息 List curEList = classCurriculumRepository.listAll(params); @@ -141,16 +142,20 @@ public class ArchivesQueryExe { } if (qry.getTypeList().contains(2)) { + sb.append("-学时证明"); // 课件信息 List classChapterList = classCurriculumChapterRepository.listVideoByClassId(classE.getClassId()); classChapterEList = BeanUtil.copyToList(classChapterList, ClassCurriculumChapterE.class); } if (qry.getTypeList().contains(3)) { + sb.append("-学员学习档案"); // 学员人脸记录 StudentDO studentUrl = studentRepository.findFaceUrlByPhone(studentDO.getPhone()); studentE.setUserAvatarUrl(studentUrl.getUserAvatarUrl()); } if (qry.getTypeList().contains(4)) { + + sb.append("-学习记录"); // 签到照片 params.put("studentId", studentDO.getStudentId()); List studentSignList = studentSignRepository.listAllByStudentId(params); @@ -166,6 +171,7 @@ public class ArchivesQueryExe { PersonArchivesDTO personArchivesDTO = new PersonArchivesDTO(); BeanUtils.copyProperties(personArchivesE, personArchivesDTO); if (qry.getTypeList().contains(5)) { + sb.append("-考卷信息"); StudentExamRecordDO studentExamRecordDO = studentExamRecordRepository.getInfoByStudentId(studentDO.getStudentId()); if(studentExamRecordDO != null){ StudentExamRecordCO studentExamRecordCO = new StudentExamRecordCO(); @@ -179,7 +185,7 @@ public class ArchivesQueryExe { } // 新增档案下载记录 ArchivesPdfFileE archivesPdfFileE = new ArchivesPdfFileE(); - archivesPdfFileE.init("student", personArchivesDTO.getStudentId(), 1, AuthContext.getTenantId(), personArchivesDTO.getName()+"-"+personArchivesDTO.getClassName()); + archivesPdfFileE.init("student", personArchivesDTO.getStudentId(), 1, AuthContext.getTenantId(), personArchivesDTO.getClassName()+"一人一档案"+sb.toString()); ArchivesPdfFileDO archivesPdfFileDO = new ArchivesPdfFileDO(); BeanUtils.copyProperties(archivesPdfFileE, archivesPdfFileDO); archivesPdfFileRepository.save(archivesPdfFileDO);