From 8703b8bdc70af4dba3da68b2a4d129fd9feedd3f Mon Sep 17 00:00:00 2001 From: puz <13060209078@163.com> Date: Tue, 14 Jul 2026 16:50:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20PDF=E6=96=87=E6=A1=A3=E8=B0=83=E6=95=B4?= =?UTF-8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/impl/MeetingExportServiceImpl.java | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/backend/src/main/java/com/imeeting/service/biz/impl/MeetingExportServiceImpl.java b/backend/src/main/java/com/imeeting/service/biz/impl/MeetingExportServiceImpl.java index 5aac1e3..423fa86 100644 --- a/backend/src/main/java/com/imeeting/service/biz/impl/MeetingExportServiceImpl.java +++ b/backend/src/main/java/com/imeeting/service/biz/impl/MeetingExportServiceImpl.java @@ -63,7 +63,8 @@ public class MeetingExportServiceImpl implements MeetingExportService { private static final float WATERMARK_BASE_STEP_X = 430f; private static final float WATERMARK_BASE_STEP_Y = 300f; private static final String PDF_EXPORT_VERSION_PROPERTY = "iMeetingPdfExportVersion"; - private static final String PDF_EXPORT_VERSION = "3"; + private static final String PDF_EXPORT_VERSION = "4"; + private static final DateTimeFormatter PDF_MEETING_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"); private final MeetingSummaryFileService meetingSummaryFileService; private final SysTenantUserService sysTenantUserService; @@ -210,7 +211,7 @@ public class MeetingExportServiceImpl implements MeetingExportService { String htmlBody = renderer.render(document); String title = meeting.getTitle() == null ? "Meeting" : meeting.getTitle(); - String time = meeting.getMeetingTime() == null ? "" : meeting.getMeetingTime().toString(); + String time = formatPdfMeetingTime(meeting); String host = meeting.getHostName() == null ? "" : meeting.getHostName(); String participants = meeting.getParticipants() == null ? "" : meeting.getParticipants(); @@ -233,16 +234,16 @@ public class MeetingExportServiceImpl implements MeetingExportService { "" + "
" + "

" + title + "

" + - "
" + - "Meeting Time: " + time + "" + + "
" + + "会议时间:" + time + "" + "|" + - "Host: " + host + "" + + "主持人:" + host + "" + "|" + - "Participants: " + participants + "" + + "参会人:" + participants + "" + "
" + "
" + htmlBody + "
" + - "
" + - "Generated by iMeeting AI Assistant" + + "
" + + "—— 内容由智听云AI生成 ——" + "
" + ""; @@ -252,6 +253,10 @@ public class MeetingExportServiceImpl implements MeetingExportService { return jsoupDoc.html(); } + private String formatPdfMeetingTime(MeetingVO meeting) { + return meeting.getMeetingTime() == null ? "" : meeting.getMeetingTime().format(PDF_MEETING_TIME_FORMATTER); + } + private void normalizeMarkdownLists(Element container, int level) { if (container == null) { return;