fix:修复预览页面下载权限问题

This commit is contained in:
2023-05-19 08:45:33 +08:00
parent 84421b48cc
commit b4eb5540a2
@@ -721,6 +721,7 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
powerList.add(DOWNLOAD);
LambdaQueryWrapper<PowerApply> powerApplyLambdaQueryWrapper = new LambdaQueryWrapper<>();
powerApplyLambdaQueryWrapper.in(PowerApply::getPower, powerList);
powerApplyLambdaQueryWrapper.eq(PowerApply::getReportId, reportId);
List<PowerApply> list = iPowerApplyService.list(powerApplyLambdaQueryWrapper);
if (CollectionUtils.isNotEmpty(list)) {
list.forEach(powerApply -> {