Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
event
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
陈世强
event
Commits
b3b7b61e
提交
b3b7b61e
authored
4月 10, 2025
作者:
925993793@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加批量删除标签的接口
上级
0ab2861d
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
3 行删除
+41
-3
InformationController.java
...m/zzsn/event/controller/common/InformationController.java
+22
-2
InformationService.java
src/main/java/com/zzsn/event/service/InformationService.java
+15
-1
InformationServiceImpl.java
...a/com/zzsn/event/service/impl/InformationServiceImpl.java
+0
-0
InfoDataSearchCondition.java
src/main/java/com/zzsn/event/vo/InfoDataSearchCondition.java
+4
-0
没有找到文件。
src/main/java/com/zzsn/event/controller/common/InformationController.java
浏览文件 @
b3b7b61e
...
@@ -249,7 +249,7 @@ public class InformationController {
...
@@ -249,7 +249,7 @@ public class InformationController {
}
}
/**
/**
* 保存为数据集
* 保存为数据集
(实为打标签)
*
*
* @param searchCondition 筛选条件
* @param searchCondition 筛选条件
* @author lkg
* @author lkg
...
@@ -265,7 +265,27 @@ public class InformationController {
...
@@ -265,7 +265,27 @@ public class InformationController {
return
Result
.
FAIL
(
"专题id不能为空"
);
return
Result
.
FAIL
(
"专题id不能为空"
);
}
}
CompletableFuture
.
runAsync
(()
->
informationService
.
saveAsDataSet
(
searchCondition
));
CompletableFuture
.
runAsync
(()
->
informationService
.
saveAsDataSet
(
searchCondition
));
return
Result
.
OK
(
"数据集保存中。。。"
);
return
Result
.
OK
(
"数据集保存中,请稍后查看"
);
}
/**
* 批量删除标签
*
* @param searchCondition 筛选条件
* @author lkg
* @date 2024/5/6
*/
@PostMapping
(
"/batchDeleteLabel"
)
public
Result
<?>
batchDeleteLabel
(
@RequestBody
InfoDataSearchCondition
searchCondition
)
{
String
dataSetId
=
searchCondition
.
getRemoveRelationId
();
if
(
StringUtils
.
isEmpty
(
dataSetId
))
{
return
Result
.
FAIL
(
"待删除标签id不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
searchCondition
.
getSubjectId
()))
{
return
Result
.
FAIL
(
"专题id不能为空"
);
}
CompletableFuture
.
runAsync
(()
->
informationService
.
removeLabels
(
searchCondition
));
return
Result
.
OK
(
"标签删除中,请稍后查看"
);
}
}
...
...
src/main/java/com/zzsn/event/service/InformationService.java
浏览文件 @
b3b7b61e
...
@@ -39,6 +39,7 @@ public interface InformationService {
...
@@ -39,6 +39,7 @@ public interface InformationService {
* @date 2024/5/6
* @date 2024/5/6
*/
*/
IPage
<
DisplayInfo
>
subjectPageList
(
InfoDataSearchCondition
subjectInfo
);
IPage
<
DisplayInfo
>
subjectPageList
(
InfoDataSearchCondition
subjectInfo
);
/**
/**
* 专题库资讯分页列表
* 专题库资讯分页列表
*
*
...
@@ -47,6 +48,7 @@ public interface InformationService {
...
@@ -47,6 +48,7 @@ public interface InformationService {
* @date 2024/5/6
* @date 2024/5/6
*/
*/
IPage
<
SpecialInformation
>
subjectPageListForDataDetail
(
InfoDataSearchCondition
subjectInfo
);
IPage
<
SpecialInformation
>
subjectPageListForDataDetail
(
InfoDataSearchCondition
subjectInfo
);
/**
/**
* 资讯分页列表(根据标签分类分组)
* 资讯分页列表(根据标签分类分组)
*/
*/
...
@@ -62,6 +64,15 @@ public interface InformationService {
...
@@ -62,6 +64,15 @@ public interface InformationService {
void
saveAsDataSet
(
InfoDataSearchCondition
searchCondition
);
void
saveAsDataSet
(
InfoDataSearchCondition
searchCondition
);
/**
/**
* 批量删除标签
*
* @param searchCondition 筛选条件
* @author lkg
* @date 2025/4/10
*/
void
removeLabels
(
InfoDataSearchCondition
searchCondition
);
/**
* 资讯详情
* 资讯详情
*
*
* @param type 类别(1-采集库;2-专题库)
* @param type 类别(1-采集库;2-专题库)
...
@@ -131,7 +142,7 @@ public interface InformationService {
...
@@ -131,7 +142,7 @@ public interface InformationService {
* @author lkg
* @author lkg
* @date 2025/3/31
* @date 2025/3/31
*/
*/
void
modifyLabel
(
DataBindLabelFrom
dataBindLabelFrom
,
List
<
DictVO
>
boundList
);
void
modifyLabel
(
DataBindLabelFrom
dataBindLabelFrom
,
List
<
DictVO
>
boundList
);
/**
/**
* 审核
* 审核
...
@@ -207,6 +218,7 @@ public interface InformationService {
...
@@ -207,6 +218,7 @@ public interface InformationService {
/**
/**
* 批量导入数据到发布库
* 批量导入数据到发布库
*
* @author lkg
* @author lkg
* @date 2025/2/5
* @date 2025/2/5
*/
*/
...
@@ -214,6 +226,7 @@ public interface InformationService {
...
@@ -214,6 +226,7 @@ public interface InformationService {
/**
/**
* 批量导入数据到发布库-研究中心
* 批量导入数据到发布库-研究中心
*
* @author lkg
* @author lkg
* @date 2025/2/5
* @date 2025/2/5
*/
*/
...
@@ -228,6 +241,7 @@ public interface InformationService {
...
@@ -228,6 +241,7 @@ public interface InformationService {
* @date 2025/2/20
* @date 2025/2/20
*/
*/
void
removeByCondition
(
String
subjectId
,
List
<
String
>
themeIds
);
void
removeByCondition
(
String
subjectId
,
List
<
String
>
themeIds
);
/**
/**
* 新增专题下的数据-研究中心
* 新增专题下的数据-研究中心
*
*
...
...
src/main/java/com/zzsn/event/service/impl/InformationServiceImpl.java
浏览文件 @
b3b7b61e
差异被折叠。
点击展开。
src/main/java/com/zzsn/event/vo/InfoDataSearchCondition.java
浏览文件 @
b3b7b61e
...
@@ -97,6 +97,10 @@ public class InfoDataSearchCondition {
...
@@ -97,6 +97,10 @@ public class InfoDataSearchCondition {
//数据集id,保存数据集时使用-研究中心
//数据集id,保存数据集时使用-研究中心
private
String
dataSetId
;
private
String
dataSetId
;
//待删除的标签id(多个用逗号隔开)-研究中心
private
String
removeRelationId
;
//关键词信息;推荐信息源时使用-研究中心
//关键词信息;推荐信息源时使用-研究中心
private
List
<
String
>
wordsList
;
private
List
<
String
>
wordsList
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论