提交 30142824 作者: 925993793@qq.com

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

上级 449b6c53
......@@ -288,20 +288,34 @@ public class StatisticalAnalysisController {
*/
private List<Label> bindLabelList(String subjectId) {
List<Label> labels = new ArrayList<>();
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);
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);
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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论