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