提交 b3b7b61e 作者: 925993793@qq.com

增加批量删除标签的接口

上级 0ab2861d
......@@ -249,7 +249,7 @@ public class InformationController {
}
/**
* 保存为数据集
* 保存为数据集(实为打标签)
*
* @param searchCondition 筛选条件
* @author lkg
......@@ -265,7 +265,27 @@ public class InformationController {
return Result.FAIL("专题id不能为空");
}
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("标签删除中,请稍后查看");
}
......
......@@ -39,6 +39,7 @@ public interface InformationService {
* @date 2024/5/6
*/
IPage<DisplayInfo> subjectPageList(InfoDataSearchCondition subjectInfo);
/**
* 专题库资讯分页列表
*
......@@ -47,6 +48,7 @@ public interface InformationService {
* @date 2024/5/6
*/
IPage<SpecialInformation> subjectPageListForDataDetail(InfoDataSearchCondition subjectInfo);
/**
* 资讯分页列表(根据标签分类分组)
*/
......@@ -62,6 +64,15 @@ public interface InformationService {
void saveAsDataSet(InfoDataSearchCondition searchCondition);
/**
* 批量删除标签
*
* @param searchCondition 筛选条件
* @author lkg
* @date 2025/4/10
*/
void removeLabels(InfoDataSearchCondition searchCondition);
/**
* 资讯详情
*
* @param type 类别(1-采集库;2-专题库)
......@@ -127,11 +138,11 @@ public interface InformationService {
* 资讯绑定标签
*
* @param dataBindLabelFrom 绑定参数
* @param boundList 专题绑定的标签(数据字典)集合
* @param boundList 专题绑定的标签(数据字典)集合
* @author lkg
* @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 {
/**
* 批量导入数据到发布库
*
* @author lkg
* @date 2025/2/5
*/
......@@ -214,6 +226,7 @@ public interface InformationService {
/**
* 批量导入数据到发布库-研究中心
*
* @author lkg
* @date 2025/2/5
*/
......@@ -228,6 +241,7 @@ public interface InformationService {
* @date 2025/2/20
*/
void removeByCondition(String subjectId, List<String> themeIds);
/**
* 新增专题下的数据-研究中心
*
......
......@@ -97,6 +97,10 @@ public class InfoDataSearchCondition {
//数据集id,保存数据集时使用-研究中心
private String dataSetId;
//待删除的标签id(多个用逗号隔开)-研究中心
private String removeRelationId;
//关键词信息;推荐信息源时使用-研究中心
private List<String> wordsList;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论