Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
event
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
陈世强
event
Commits
4840a326
提交
4840a326
authored
4月 11, 2025
作者:
yanxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增事件配置全量同步接口(通知采集)
上级
791d82af
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
29 行增加
和
3 行删除
+29
-3
SubjectManageController.java
...va/com/zzsn/event/controller/SubjectManageController.java
+29
-3
没有找到文件。
src/main/java/com/zzsn/event/controller/SubjectManageController.java
浏览文件 @
4840a326
...
@@ -39,6 +39,7 @@ import org.springframework.http.HttpHeaders;
...
@@ -39,6 +39,7 @@ import org.springframework.http.HttpHeaders;
import
org.springframework.kafka.core.KafkaTemplate
;
import
org.springframework.kafka.core.KafkaTemplate
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
sun.security.pkcs10.PKCS10
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
@@ -68,6 +69,8 @@ public class SubjectManageController {
...
@@ -68,6 +69,8 @@ public class SubjectManageController {
@Autowired
@Autowired
private
SubjectService
subjectService
;
private
SubjectService
subjectService
;
@Autowired
@Autowired
private
IEventService
eventService
;
@Autowired
private
ISubjectKeywordsMapService
subjectKeywordsMapService
;
private
ISubjectKeywordsMapService
subjectKeywordsMapService
;
@Autowired
@Autowired
private
IXxlJobInfoService
xxlJobInfoService
;
private
IXxlJobInfoService
xxlJobInfoService
;
...
@@ -431,9 +434,9 @@ public class SubjectManageController {
...
@@ -431,9 +434,9 @@ public class SubjectManageController {
* @author lkg
* @author lkg
* @date 2025/1/9
* @date 2025/1/9
*/
*/
@PostMapping
(
"/updateAllToCaiji"
)
@PostMapping
(
"/update
Subject
AllToCaiji"
)
public
Result
<?>
updateAllToCaiji
()
{
public
Result
<?>
update
Subject
AllToCaiji
()
{
List
<
Subject
>
list
=
subjectService
.
list
();
List
<
Subject
>
list
=
subjectService
.
list
(
Wrappers
.<
Subject
>
lambdaQuery
().
eq
(
Subject:
:
getSubjectType
,
1
)
);
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
Subject
subject
=
list
.
get
(
i
);
Subject
subject
=
list
.
get
(
i
);
log
.
info
(
"专题状态同步采集{},index:{},total:{}"
,
subject
.
getSubjectName
(),
i
,
list
.
size
());
log
.
info
(
"专题状态同步采集{},index:{},total:{}"
,
subject
.
getSubjectName
(),
i
,
list
.
size
());
...
@@ -449,6 +452,29 @@ public class SubjectManageController {
...
@@ -449,6 +452,29 @@ public class SubjectManageController {
}
}
return
Result
.
OK
();
return
Result
.
OK
();
}
}
/**
* 更新状态
*
* @author lkg
* @date 2025/1/9
*/
@PostMapping
(
"/updateEventAllToCaiji"
)
public
Result
<?>
updateEventAllToCaiji
()
{
List
<
Event
>
list
=
eventService
.
list
();
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
Event
event
=
list
.
get
(
i
);
log
.
info
(
"事件状态同步采集{},index:{},total:{}"
,
event
.
getEventName
(),
i
,
list
.
size
());
if
(
event
.
getStatus
()!=
null
&&
event
.
getStatus
()
==
1
)
{
configurationMessageService
.
bindKeyWordsEventSend
(
event
.
getId
());
caiJiCenterHttpService
.
subjectStatusEdit
(
event
.
getStatus
(),
event
.
getId
());
log
.
info
(
"事件配置信息同步采集成功:{}"
,
event
.
getEventName
());
}
else
{
caiJiCenterHttpService
.
delSubject
(
event
.
getId
());
log
.
info
(
"通知采集删除事件成功:{}"
,
event
.
getEventName
());
}
}
return
Result
.
OK
();
}
/**
/**
* 通过id删除
* 通过id删除
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论