Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cmeeting
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
翟斌
cmeeting
Commits
f2b10133
提交
f2b10133
authored
8月 19, 2025
作者:
洪东保
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
每天清空三个月前的会议记录
父级
f2209357
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
22 行增加
和
3 行删除
+22
-3
src/main/java/com/cmeeting/job/CmeetingJob.java
+8
-1
src/main/java/com/cmeeting/mapper/primary/MeetingInfoMapper.java
+3
-0
src/main/java/com/cmeeting/service/MeetingInfoService.java
+2
-0
src/main/java/com/cmeeting/service/impl/MeetingInfoServiceImpl.java
+5
-0
src/main/resources/mapper/primary/MeetingInfoMapper.xml
+4
-2
没有找到文件。
src/main/java/com/cmeeting/job/CmeetingJob.java
浏览文件 @
f2b10133
...
@@ -20,7 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -20,7 +20,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -364,5 +363,13 @@ public class CmeetingJob {
...
@@ -364,5 +363,13 @@ public class CmeetingJob {
log
.
info
(
"同步用户结束,耗时: {}ms"
,
System
.
currentTimeMillis
()
-
l
);
log
.
info
(
"同步用户结束,耗时: {}ms"
,
System
.
currentTimeMillis
()
-
l
);
}
}
/**
* 每天0点30分执行一次
*/
@Scheduled
(
cron
=
"0 30 0 * * ? "
)
public
void
deleteDataAfterThan3Months
()
{
meetingInfoService
.
deleteDataAfterThan3Months
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
}
}
}
src/main/java/com/cmeeting/mapper/primary/MeetingInfoMapper.java
浏览文件 @
f2b10133
...
@@ -7,6 +7,7 @@ import org.apache.ibatis.annotations.MapKey;
...
@@ -7,6 +7,7 @@ import org.apache.ibatis.annotations.MapKey;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -29,6 +30,8 @@ public interface MeetingInfoMapper extends BaseMapper<MeetingInfo> {
...
@@ -29,6 +30,8 @@ public interface MeetingInfoMapper extends BaseMapper<MeetingInfo> {
@Param
(
"endTime"
)
String
endTime
,
@Param
(
"endTime"
)
String
endTime
,
@Param
(
"dateList"
)
List
<
String
>
dateList
);
@Param
(
"dateList"
)
List
<
String
>
dateList
);
int
deleteDataAfterThan3Months
(
@Param
(
"date"
)
String
date
);
// List<MeetingInfo> selectList(MeetingInfoVO vo);
// List<MeetingInfo> selectList(MeetingInfoVO vo);
...
...
src/main/java/com/cmeeting/service/MeetingInfoService.java
浏览文件 @
f2b10133
...
@@ -45,4 +45,6 @@ public interface MeetingInfoService extends IService<MeetingInfo> {
...
@@ -45,4 +45,6 @@ public interface MeetingInfoService extends IService<MeetingInfo> {
* @param response
* @param response
*/
*/
void
exportRecordTemplateUsingInfo
(
String
searchValue
,
Date
createTimeStart
,
Date
createTimeEnd
,
HttpServletResponse
response
);
void
exportRecordTemplateUsingInfo
(
String
searchValue
,
Date
createTimeStart
,
Date
createTimeEnd
,
HttpServletResponse
response
);
boolean
deleteDataAfterThan3Months
(
String
date
);
}
}
src/main/java/com/cmeeting/service/impl/MeetingInfoServiceImpl.java
浏览文件 @
f2b10133
...
@@ -421,6 +421,11 @@ public class MeetingInfoServiceImpl extends ServiceImpl<MeetingInfoMapper, Meeti
...
@@ -421,6 +421,11 @@ public class MeetingInfoServiceImpl extends ServiceImpl<MeetingInfoMapper, Meeti
}
}
@Override
public
boolean
deleteDataAfterThan3Months
(
String
date
)
{
return
baseMapper
.
deleteDataAfterThan3Months
(
date
)
!=
0
;
}
/**
/**
* 保存会议纪要相关的文件
* 保存会议纪要相关的文件
* @param content 大模型返回的不规则xml
* @param content 大模型返回的不规则xml
...
...
src/main/resources/mapper/primary/MeetingInfoMapper.xml
浏览文件 @
f2b10133
...
@@ -60,5 +60,8 @@
...
@@ -60,5 +60,8 @@
GROUP BY t.host_uid, userid.wid
GROUP BY t.host_uid, userid.wid
</select>
</select>
<delete
id=
"deleteDataAfterThan3Months"
>
delete from cmt_meeting_info where start_time
< DATE_SUB
(#{date},
INTERVAL
3
MONTH);
</delete
>
</mapper>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论