fix:修复报告详情标签显示问题
This commit is contained in:
@@ -659,10 +659,7 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
|
|||||||
List<ReportLabelEntity> reportLabelEntities = reportLabelDao.selectList(wrapper);
|
List<ReportLabelEntity> reportLabelEntities = reportLabelDao.selectList(wrapper);
|
||||||
if (CollectionUtils.isNotEmpty(reportLabelEntities)) {
|
if (CollectionUtils.isNotEmpty(reportLabelEntities)) {
|
||||||
List<String> reportLabelIds = reportLabelEntities.stream().map(ReportLabelEntity::getLabelId).collect(Collectors.toList());
|
List<String> reportLabelIds = reportLabelEntities.stream().map(ReportLabelEntity::getLabelId).collect(Collectors.toList());
|
||||||
reportDetailVo.setLabelIds(reportLabelIds);
|
reportDetailVo.setLabelList(reportLabelIds);
|
||||||
List<TreeLabelEntity> labelEntities = iTreeLabelService.query().in("id", reportLabelIds).list();
|
|
||||||
List<String> labels = labelEntities.stream().map(TreeLabelEntity::getLabel).collect(Collectors.toList());
|
|
||||||
reportDetailVo.setLabelList(labels);
|
|
||||||
}
|
}
|
||||||
//设置当前用户受否有下载权限
|
//设置当前用户受否有下载权限
|
||||||
if (reportDetailVo.getCreateUserId().equals(UserUtils.getUserId())) {
|
if (reportDetailVo.getCreateUserId().equals(UserUtils.getUserId())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user