ci:更改报告详情接口标签名字段名
This commit is contained in:
@@ -658,11 +658,12 @@ 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::getLastLabel).collect(Collectors.toList());
|
||||
reportDetailVo.setLabelIds(reportLabelIds);
|
||||
List<TreeLabelEntity> labelEntities = iTreeLabelService.query().in("id", reportLabelIds).list();
|
||||
List<String> reportLabelIds = reportLabelEntities.stream().map(ReportLabelEntity::getLabelId).collect(Collectors.toList());
|
||||
reportDetailVo.setLabelList(reportLabelIds);
|
||||
List<String> lastLabels = reportLabelEntities.stream().map(ReportLabelEntity::getLastLabel).collect(Collectors.toList());
|
||||
List<TreeLabelEntity> labelEntities = iTreeLabelService.query().in("id", lastLabels).list();
|
||||
List<String> labels = labelEntities.stream().map(TreeLabelEntity::getLabel).collect(Collectors.toList());
|
||||
reportDetailVo.setLabelList(labels);
|
||||
reportDetailVo.setLabels(labels);
|
||||
}
|
||||
//设置当前用户受否有下载权限
|
||||
if (UserUtils.getUserId().equals(reportDetailVo.getCreateUserId())) {
|
||||
|
||||
@@ -84,7 +84,7 @@ public class ReportDetailVo {
|
||||
private List<String> labelIds;
|
||||
|
||||
/**
|
||||
* 标签列表名
|
||||
* 标签id(完整路径)
|
||||
*/
|
||||
private List<String> labelList;
|
||||
|
||||
@@ -97,4 +97,9 @@ public class ReportDetailVo {
|
||||
* 用户权限级别
|
||||
*/
|
||||
private Double levelId;
|
||||
|
||||
/**
|
||||
* 标签列表名
|
||||
*/
|
||||
private List<String> labels;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user