提交 30142824 作者: 925993793@qq.com

自定义专题-资讯来源分析逻辑修改

上级 449b6c53
...@@ -288,6 +288,18 @@ public class StatisticalAnalysisController { ...@@ -288,6 +288,18 @@ public class StatisticalAnalysisController {
*/ */
private List<Label> bindLabelList(String subjectId) { private List<Label> bindLabelList(String subjectId) {
List<Label> labels = new ArrayList<>(); List<Label> labels = new ArrayList<>();
Subject subject = subjectService.getById(subjectId);
String dataScope = subject.getDataScope();
if ("1".equals(dataScope)) {
List<SysDictItem> dictItemList = sysDictItemService.listByDictCode("label_infosource_main_type");
for (SysDictItem sysDictItem : dictItemList) {
Label label = new Label();
label.setRelationId(sysDictItem.getId());
label.setLabelMark("LABEL-20250618-0004");
label.setRelationName(sysDictItem.getItemText());
labels.add(label);
}
} else {
List<InfoSourceLabelVO> infoSourceLabelInfos = clbLabelService.bindInfoSourceLabelInfo(subjectId); List<InfoSourceLabelVO> infoSourceLabelInfos = clbLabelService.bindInfoSourceLabelInfo(subjectId);
if (ObjectUtil.isNotEmpty(infoSourceLabelInfos)) { if (ObjectUtil.isNotEmpty(infoSourceLabelInfos)) {
for (InfoSourceLabelVO infoSourceLabel : infoSourceLabelInfos) { for (InfoSourceLabelVO infoSourceLabel : infoSourceLabelInfos) {
...@@ -302,6 +314,8 @@ public class StatisticalAnalysisController { ...@@ -302,6 +314,8 @@ public class StatisticalAnalysisController {
} }
} }
} }
}
return labels; return labels;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论