提交 30142824 作者: 925993793@qq.com

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

上级 449b6c53
...@@ -288,20 +288,34 @@ public class StatisticalAnalysisController { ...@@ -288,20 +288,34 @@ 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<>();
List<InfoSourceLabelVO> infoSourceLabelInfos = clbLabelService.bindInfoSourceLabelInfo(subjectId); Subject subject = subjectService.getById(subjectId);
if (ObjectUtil.isNotEmpty(infoSourceLabelInfos)) { String dataScope = subject.getDataScope();
for (InfoSourceLabelVO infoSourceLabel : infoSourceLabelInfos) { if ("1".equals(dataScope)) {
String labelCode = infoSourceLabel.getLabelCode(); List<SysDictItem> dictItemList = sysDictItemService.listByDictCode("label_infosource_main_type");
List<InfoSourceLabelItemVO> infoSourceLabelItemList = infoSourceLabel.getInfoSourceLabelItemList(); for (SysDictItem sysDictItem : dictItemList) {
for (InfoSourceLabelItemVO infoSourceLabelItem : infoSourceLabelItemList) { Label label = new Label();
Label label = new Label(); label.setRelationId(sysDictItem.getId());
label.setLabelMark(labelCode); label.setLabelMark("LABEL-20250618-0004");
label.setRelationName(infoSourceLabelItem.getLabelItemName()); label.setRelationName(sysDictItem.getItemText());
label.setRelationId(infoSourceLabelItem.getLabelItemCode()); labels.add(label);
labels.add(label); }
} else {
List<InfoSourceLabelVO> infoSourceLabelInfos = clbLabelService.bindInfoSourceLabelInfo(subjectId);
if (ObjectUtil.isNotEmpty(infoSourceLabelInfos)) {
for (InfoSourceLabelVO infoSourceLabel : infoSourceLabelInfos) {
String labelCode = infoSourceLabel.getLabelCode();
List<InfoSourceLabelItemVO> infoSourceLabelItemList = infoSourceLabel.getInfoSourceLabelItemList();
for (InfoSourceLabelItemVO infoSourceLabelItem : infoSourceLabelItemList) {
Label label = new Label();
label.setLabelMark(labelCode);
label.setRelationName(infoSourceLabelItem.getLabelItemName());
label.setRelationId(infoSourceLabelItem.getLabelItemCode());
labels.add(label);
}
} }
} }
} }
return labels; return labels;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论