feat:报告详情接口返回标签id和标签名
(更改为后端返回)
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user