feat(资料中心): 下载权限增加

This commit is contained in:
yjz
2024-07-16 17:32:23 +08:00
parent 96cd864ae6
commit 7f75996594
2 changed files with 13 additions and 0 deletions
@@ -108,8 +108,16 @@ public class LawsDataCenterFile implements Serializable {
@ApiModelProperty(value = "查看权限ids")
@TableField(exist = false)
private String authViewIds;
/**下载权限ids*/
@ApiModelProperty(value = "下载权限")
@TableField(exist = false)
private java.lang.String authDownloadIds;
/**管理权限标识*/
@ApiModelProperty(value = "管理权限标识(true:有管理权限 false:没有管理权限)")
@TableField(exist = false)
private boolean authManageTag = true;
/**下载权限标识*/
@ApiModelProperty(value = "下载权限标识(true:有下载权限 false:没有下载权限)")
@TableField(exist = false)
private boolean authDownloadTag = true;
}
@@ -104,6 +104,11 @@ public class LawsDataCenterFileServiceImpl extends ServiceImpl<LawsDataCenterFil
&& (StringUtils.isBlank(authManageIds) || !authManageIds.contains(userId))){
file.setAuthManageTag(false);
}
// 下载权限标识
String authDownloadIds = file.getAuthDownloadIds();
if (!authDownloadIds.contains(userId)){
file.setAuthDownloadTag(false);
}
}
}
return result;