Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cmeeting
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
翟斌
cmeeting
Commits
cff8f61b
提交
cff8f61b
authored
7月 28, 2025
作者:
张开石
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、添加统计会议纪要推送数据
父级
0bf9ad20
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
47 行增加
和
16 行删除
+47
-16
src/main/java/com/cmeeting/controller/MeetingInfoController.java
+4
-3
src/main/java/com/cmeeting/service/MeetingInfoService.java
+2
-1
src/main/java/com/cmeeting/service/impl/MeetingInfoServiceImpl.java
+12
-12
src/main/java/com/cmeeting/vo/EmailStatisticsVo.java
+29
-0
没有找到文件。
src/main/java/com/cmeeting/controller/MeetingInfoController.java
浏览文件 @
cff8f61b
...
...
@@ -15,6 +15,7 @@ import com.cmeeting.util.AESUtils;
import
com.cmeeting.util.MinioUtils
;
import
com.cmeeting.util.R
;
import
com.cmeeting.vo.EmailPush
;
import
com.cmeeting.vo.EmailStatisticsVo
;
import
com.cmeeting.vo.MeetingInfoVO
;
import
com.deepoove.poi.XWPFTemplate
;
import
com.fasterxml.jackson.databind.JsonNode
;
...
...
@@ -301,9 +302,9 @@ public class MeetingInfoController {
}
@
Ge
tMapping
(
"/statistics"
)
public
void
statisticsEmail
(
Integer
type
,
HttpServletResponse
response
)
{
@
Pos
tMapping
(
"/statistics"
)
public
void
statisticsEmail
(
@RequestBody
EmailStatisticsVo
vo
,
HttpServletResponse
response
)
{
meetingInfoService
.
statisticsEmail
(
type
,
response
);
meetingInfoService
.
statisticsEmail
(
vo
.
getType
(),
vo
.
getStartTime
(),
vo
.
getEndTime
()
,
response
);
}
}
src/main/java/com/cmeeting/service/MeetingInfoService.java
浏览文件 @
cff8f61b
...
...
@@ -6,6 +6,7 @@ import com.cmeeting.pojo.MeetingInfo;
import
com.cmeeting.vo.MeetingInfoVO
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Date
;
public
interface
MeetingInfoService
extends
IService
<
MeetingInfo
>
{
IPage
<
MeetingInfo
>
getPage
(
MeetingInfoVO
vo
);
...
...
@@ -17,6 +18,6 @@ public interface MeetingInfoService extends IService<MeetingInfo> {
/**
* 统计邮件推送情况
*/
void
statisticsEmail
(
Integer
type
,
HttpServletResponse
response
);
void
statisticsEmail
(
Integer
type
,
Date
startTime
,
Date
endTime
,
HttpServletResponse
response
);
}
src/main/java/com/cmeeting/service/impl/MeetingInfoServiceImpl.java
浏览文件 @
cff8f61b
...
...
@@ -54,6 +54,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -426,23 +427,22 @@ public class MeetingInfoServiceImpl extends ServiceImpl<MeetingInfoMapper, Meeti
* 统计邮件推送情况
*/
@Override
public
void
statisticsEmail
(
Integer
type
,
HttpServletResponse
response
)
{
public
void
statisticsEmail
(
Integer
type
,
Date
startTime
,
Date
endTime
,
HttpServletResponse
response
)
{
DateTime
now
=
DateUtil
.
date
();
DateTime
startDate
;
DateTime
endTime
;
if
(
1
==
type
)
{
startDate
=
DateUtil
.
beginOfDay
(
DateUtil
.
offset
(
now
,
DateField
.
DAY_OF_MONTH
,
-
2
)
);
endTime
=
DateUtil
.
offset
(
now
,
DateField
.
HOUR_OF_DAY
,
-
2
);
}
else
{
startDate
=
DateUtil
.
beginOfDay
(
now
)
;
endTime
=
now
;
if
(
ObjectUtils
.
isEmpty
(
startTime
)
||
ObjectUtils
.
isEmpty
(
endTime
))
{
if
(
1
==
type
)
{
startTime
=
DateUtil
.
beginOfDay
(
DateUtil
.
offset
(
now
,
DateField
.
DAY_OF_MONTH
,
-
2
));
endTime
=
DateUtil
.
offset
(
now
,
DateField
.
HOUR_OF_DAY
,
-
2
);
}
else
{
startTime
=
DateUtil
.
beginOfDay
(
now
);
endTime
=
now
;
}
}
List
<
MeetingInfo
>
meetingInfoList
=
meetingInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
MeetingInfo
>()
.
eq
(
MeetingInfo:
:
getEmailPushAccess
,
true
)
.
between
(
MeetingInfo:
:
getStartTime
,
start
Dat
e
,
endTime
));
.
between
(
MeetingInfo:
:
getStartTime
,
start
Tim
e
,
endTime
));
Map
<
String
,
List
<
MeetingInfo
>>
hostUidMeetingInfoMap
=
meetingInfoList
.
stream
().
collect
(
Collectors
.
groupingBy
(
MeetingInfo:
:
getHostUid
));
Map
<
String
,
String
>
hostMap
=
new
HashMap
<>();
meetingInfoList
.
forEach
(
meetingInfo
->
{
...
...
@@ -490,7 +490,7 @@ public class MeetingInfoServiceImpl extends ServiceImpl<MeetingInfoMapper, Meeti
OutputStream
outputStream
=
null
;
ExcelWriter
writer
=
ExcelUtil
.
getWriter
(
true
);
try
{
String
title
=
String
.
format
(
"
纪要模板推送统计表-%s"
,
DateUtil
.
format
(
now
,
"yyyy-MM-dd_HH:mm
"
));
String
title
=
String
.
format
(
"
会议纪要推送统计表-%s"
,
DateUtil
.
format
(
now
,
"yyyy-MM-dd
"
));
outputStream
=
response
.
getOutputStream
();
String
fileName
=
String
.
format
(
"%s.xlsx"
,
title
);
...
...
src/main/java/com/cmeeting/vo/EmailStatisticsVo.java
0 → 100644
浏览文件 @
cff8f61b
package
com
.
cmeeting
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
/**
* @Description
* @Author zhang kaishi
* @Date 2025/7/28 18:22
**/
@Data
public
class
EmailStatisticsVo
{
/**
* 统计类型
*/
private
Integer
type
;
@DateTimeFormat
(
pattern
=
"yyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
private
Date
startTime
;
@DateTimeFormat
(
pattern
=
"yyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
private
Date
endTime
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论