提交 17d69ccd 作者: 925993793@qq.com

【自定义专题】绑定信息源bug修改

上级 03966785
......@@ -1056,9 +1056,6 @@ public class SubjectManageController {
return Result.FAIL("专题id不能为空");
}
Object infoSourceMainLabel = params.get("infoSourceMainLabel");
if (ObjectUtil.isEmpty(infoSourceMainLabel)) {
return Result.FAIL("信息源标签不能为空");
}
//支持全部删除
//不管有没有传值,先删后增
LambdaQueryWrapper<SubjectInfoSourceMap> queryWrapper = Wrappers.lambdaQuery();
......@@ -1068,6 +1065,7 @@ public class SubjectManageController {
subjectInfoSourceMapService.remove(queryWrapper);
}
List<SubjectInfoSourceMap> dataList = new ArrayList<>();
if (ObjectUtil.isNotEmpty(infoSourceMainLabel)) {
List<InfoSourceMainLabelVO> infoSourceMainLabelList = JSON.parseArray(JSON.toJSONString(infoSourceMainLabel), InfoSourceMainLabelVO.class);
for (InfoSourceMainLabelVO infoSourceMainLabelVO : infoSourceMainLabelList) {
List<String> labelList = infoSourceMainLabelVO.getInfoSourceLabelItemList();
......@@ -1084,6 +1082,7 @@ public class SubjectManageController {
dataList.add(subjectInfoSourceMap);
}
}
}
if (CollectionUtils.isNotEmpty(dataList)) {
subjectInfoSourceMapService.saveBatch(dataList);
}
......
......@@ -110,7 +110,7 @@ public class ReportDataController {
* @date 2025/9/5
*/
@PostMapping("/infoList")
public Result<?> originAnalysis(@RequestBody InfoDataSearchCondition searchCondition) {
public Result<?> infoList(@RequestBody InfoDataSearchCondition searchCondition) {
return informationService.subjectPageListGroupByLabel(null, searchCondition);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论