fix:修复报告详情标签显示问题

This commit is contained in:
2023-05-11 17:31:24 +08:00
parent 1582c14c09
commit 2112aedcb1
@@ -659,10 +659,7 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
List<ReportLabelEntity> reportLabelEntities = reportLabelDao.selectList(wrapper);
if (CollectionUtils.isNotEmpty(reportLabelEntities)) {
List<String> reportLabelIds = reportLabelEntities.stream().map(ReportLabelEntity::getLabelId).collect(Collectors.toList());
reportDetailVo.setLabelIds(reportLabelIds);
List<TreeLabelEntity> labelEntities = iTreeLabelService.query().in("id", reportLabelIds).list();
List<String> labels = labelEntities.stream().map(TreeLabelEntity::getLabel).collect(Collectors.toList());
reportDetailVo.setLabelList(labels);
reportDetailVo.setLabelList(reportLabelIds);
}
//设置当前用户受否有下载权限
if (reportDetailVo.getCreateUserId().equals(UserUtils.getUserId())) {