feat:报告详情接口返回标签id和标签名

(更改为后端返回)
This commit is contained in:
2023-05-11 17:46:15 +08:00
parent 0062d75e59
commit 6334e68943
@@ -658,8 +658,11 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
wrapper.eq(ReportLabelEntity::getReportId, reportId);
List<ReportLabelEntity> reportLabelEntities = reportLabelDao.selectList(wrapper);
if (CollectionUtils.isNotEmpty(reportLabelEntities)) {
List<String> reportLabelIds = reportLabelEntities.stream().map(ReportLabelEntity::getLabelId).collect(Collectors.toList());
reportDetailVo.setLabelList(reportLabelIds);
List<String> reportLabelIds = reportLabelEntities.stream().map(ReportLabelEntity::getLastLabel).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);
}
//设置当前用户受否有下载权限
if (UserUtils.getUserId().equals(reportDetailVo.getCreateUserId())) {