Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cmeeting
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
翟斌
cmeeting
Commits
ba1bd79f
提交
ba1bd79f
authored
1月 15, 2026
作者:
洪东保
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
每次发送邮件发送一个额外使用手册文件
父级
a7776cce
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
29 行增加
和
2 行删除
+29
-2
src/main/java/com/cmeeting/controller/MeetingInfoController.java
+7
-0
src/main/java/com/cmeeting/email/EmailSender.java
+7
-2
src/main/java/com/cmeeting/job/EmailPushTask.java
+7
-0
src/main/java/com/cmeeting/job/FileProcessTask.java
+8
-0
src/main/resources/static/Cmeeting会议助手使用手册.pdf
+0
-0
没有找到文件。
src/main/java/com/cmeeting/controller/MeetingInfoController.java
浏览文件 @
ba1bd79f
...
...
@@ -35,6 +35,7 @@ import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import
org.apache.poi.xwpf.usermodel.XWPFRun
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -263,6 +264,12 @@ public class MeetingInfoController {
DateTimeFormatter
fmt
=
DateTimeFormatter
.
ofPattern
(
"yyyyMMdd"
);
EmailPush
.
Attachment
attachment
=
EmailPush
.
Attachment
.
builder
().
name
(
meetingInfo
.
getSubject
()
+
"会议纪要_"
+
fmt
.
format
(
meetingInfo
.
getStartTime
())).
bytes
(
meetingMinutesBytes
).
build
();
attachments
.
add
(
attachment
);
org
.
springframework
.
core
.
io
.
Resource
resource
=
new
ClassPathResource
(
"static/Cmeeting会议助手使用手册.pdf"
);
byte
[]
meetingMinutesBytes2
=
IOUtils
.
toByteArray
(
resource
.
getInputStream
());
EmailPush
.
Attachment
attachment2
=
EmailPush
.
Attachment
.
builder
().
name
(
"Cmeeting会议助手使用手册.pdf"
).
bytes
(
meetingMinutesBytes2
).
build
();
attachments
.
add
(
attachment2
);
String
hostUid
=
meetingInfo
.
getHostUid
();
String
userCode
=
userIdMapper
.
getWidByTid
(
hostUid
);
EmailPush
emailPushBuilder
=
EmailPush
.
builder
()
...
...
src/main/java/com/cmeeting/email/EmailSender.java
浏览文件 @
ba1bd79f
...
...
@@ -172,9 +172,14 @@ public class EmailSender {
LinkedList
<
Attachment
>
attachmentsList
=
new
LinkedList
<>();
for
(
EmailPush
.
Attachment
attachment
:
emailPushBuilder
.
getAttachments
())
{
FileAttachment
attachments
=
new
FileAttachment
();
attachments
.
name
=
attachment
.
getName
()
+
".docx"
;
if
(
attachment
.
getName
().
endsWith
(
".pdf"
))
{
attachments
.
name
=
attachment
.
getName
();
attachments
.
contentType
=
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
;
}
else
{
attachments
.
name
=
attachment
.
getName
()
+
".docx"
;
attachments
.
contentType
=
"application/pdf"
;
}
attachments
.
oDataType
=
"#microsoft.graph.fileAttachment"
;
attachments
.
contentType
=
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
;
attachments
.
contentBytes
=
attachment
.
getBytes
();
attachmentsList
.
add
(
attachments
);
}
...
...
src/main/java/com/cmeeting/job/EmailPushTask.java
浏览文件 @
ba1bd79f
...
...
@@ -21,6 +21,8 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.io.IOUtils
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.stereotype.Service
;
import
java.io.*
;
...
...
@@ -120,6 +122,11 @@ public class EmailPushTask {
FileUtil
.
del
(
dataNetworkMinutesPath
);
}
Resource
resource
=
new
ClassPathResource
(
"static/Cmeeting会议助手使用手册.pdf"
);
byte
[]
meetingMinutesBytes
=
IOUtils
.
toByteArray
(
resource
.
getInputStream
());
EmailPush
.
Attachment
attachment
=
EmailPush
.
Attachment
.
builder
().
name
(
"Cmeeting会议助手使用手册.pdf"
).
bytes
(
meetingMinutesBytes
).
build
();
attachments
.
add
(
attachment
);
String
userCode
=
tidWidRelations
.
get
(
hostUid
);
EmailPush
emailPushBuilder
=
EmailPush
.
builder
()
.
toEmail
(
meetingInfo
.
getEmail
())
...
...
src/main/java/com/cmeeting/job/FileProcessTask.java
浏览文件 @
ba1bd79f
...
...
@@ -49,6 +49,8 @@ import org.apache.commons.io.IOUtils;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.xwpf.extractor.XWPFWordExtractor
;
import
org.apache.poi.xwpf.usermodel.XWPFDocument
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
@@ -200,6 +202,12 @@ public class FileProcessTask {
isSuccess
=
false
;
continue
;
}
Resource
resource
=
new
ClassPathResource
(
"static/Cmeeting会议助手使用手册.pdf"
);
byte
[]
meetingMinutesBytes
=
IOUtils
.
toByteArray
(
resource
.
getInputStream
());
EmailPush
.
Attachment
attachment
=
EmailPush
.
Attachment
.
builder
().
name
(
"Cmeeting会议助手使用手册.pdf"
).
bytes
(
meetingMinutesBytes
).
build
();
attachments
.
add
(
attachment
);
if
(!
tidWidRelations
.
containsKey
(
meetingInfo
.
getHostUid
()))
{
log
.
error
(
"邮件推送重试失败: 主持人对应关系未配置。meetingRecordId {}"
,
meetingRecordId
);
processLogService
.
log
(
meetingId
,
subMeetingId
,
"邮件推送重试失败: 主持人对应关系未配置。meetingRecordId:"
+
meetingRecordId
);
...
...
src/main/resources/static/Cmeeting会议助手使用手册.pdf
0 → 100644
浏览文件 @
ba1bd79f
File added
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论