提交 e75633ba 作者: 洪东保

debug

父级 be3bc8f6
...@@ -213,7 +213,7 @@ public class MeetingInfoController { ...@@ -213,7 +213,7 @@ public class MeetingInfoController {
participantsMap.put("meeting_host",meetingInfo.getHost()); participantsMap.put("meeting_host",meetingInfo.getHost());
dataModel.putAll(participantsMap); dataModel.putAll(participantsMap);
MeetingRecordTemplate meetingRecordTemplate = meetingRecordTemplateMapper.selectById(2); MeetingRecordTemplate meetingRecordTemplate = meetingRecordTemplateMapper.selectById(meetingInfo.getTemplateId());
XWPFTemplate template; XWPFTemplate template;
byte[] meetingMinutesBytes; byte[] meetingMinutesBytes;
try (InputStream is = minioUtils.getFile(meetingRecordTemplate.getTemplate());ByteArrayOutputStream baos = new ByteArrayOutputStream()) { try (InputStream is = minioUtils.getFile(meetingRecordTemplate.getTemplate());ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
...@@ -224,7 +224,9 @@ public class MeetingInfoController { ...@@ -224,7 +224,9 @@ public class MeetingInfoController {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
List<EmailPush.Attachment> attachments = new ArrayList<>(); List<EmailPush.Attachment> attachments = new ArrayList<>();
EmailPush.Attachment attachment = EmailPush.Attachment.builder().name(meetingInfo.getSubject()+"_" + meetingRecordTemplate.getName()).bytes(meetingMinutesBytes).build();
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyyMMdd");
EmailPush.Attachment attachment = EmailPush.Attachment.builder().name(meetingInfo.getSubject()+"会议纪要_" + fmt.format(meetingInfo.getStartTime())).bytes(meetingMinutesBytes).build();
attachments.add(attachment); attachments.add(attachment);
String hostUid = meetingInfo.getHostUid(); String hostUid = meetingInfo.getHostUid();
String userCode = userIdMapper.getWidByTid(hostUid); String userCode = userIdMapper.getWidByTid(hostUid);
......
...@@ -153,6 +153,6 @@ permission: ...@@ -153,6 +153,6 @@ permission:
admin-white_users: ${PERMISSION_ADMIN_WHITE_USERS} admin-white_users: ${PERMISSION_ADMIN_WHITE_USERS}
# 默认模板 # 默认模板
record-template-path-default: /2025-06-13/dbe383d14e044768a8011d2fd567b7a1.docx record-template-path-default: /2025-07-21/a12465sdfsa2gas.docx
isDev: true isDev: true
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论