fix:修复查询报告接口用户权限为null问题
This commit is contained in:
@@ -537,12 +537,15 @@ public class IReportServiceImpl extends ServiceImpl<ReportDao, ReportEntity>
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
list.getRecords().forEach(reportVo -> {
|
list.getRecords().forEach(reportVo -> {
|
||||||
//其余人员只能预览公开报告(涉密等级:公开(内部公开)、隐私等级:不涉及用户隐私)
|
//只有用户没有权限的时候才给默认权限
|
||||||
if (reportVo.getConfidentialLevel().equals(PUBLIC_REPORT) &&
|
if (reportVo.getPower() == null) {
|
||||||
reportVo.getPrivacyLevel().equals(NO_USER_PRIVACY_INVOLVED)) {
|
//其余人员只能预览公开报告(涉密等级:公开(内部公开)、隐私等级:不涉及用户隐私)
|
||||||
reportVo.setPower(PREVIEW);
|
if (reportVo.getConfidentialLevel().equals(PUBLIC_REPORT) &&
|
||||||
} else {
|
reportVo.getPrivacyLevel().equals(NO_USER_PRIVACY_INVOLVED)) {
|
||||||
reportVo.setPower(NONE);
|
reportVo.setPower(PREVIEW);
|
||||||
|
} else {
|
||||||
|
reportVo.setPower(NONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user