feat(资料中心): 下载权限增加
This commit is contained in:
+8
@@ -108,8 +108,16 @@ public class LawsDataCenterFile implements Serializable {
|
|||||||
@ApiModelProperty(value = "查看权限ids")
|
@ApiModelProperty(value = "查看权限ids")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String authViewIds;
|
private String authViewIds;
|
||||||
|
/**下载权限ids*/
|
||||||
|
@ApiModelProperty(value = "下载权限")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private java.lang.String authDownloadIds;
|
||||||
/**管理权限标识*/
|
/**管理权限标识*/
|
||||||
@ApiModelProperty(value = "管理权限标识(true:有管理权限 false:没有管理权限)")
|
@ApiModelProperty(value = "管理权限标识(true:有管理权限 false:没有管理权限)")
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private boolean authManageTag = true;
|
private boolean authManageTag = true;
|
||||||
|
/**下载权限标识*/
|
||||||
|
@ApiModelProperty(value = "下载权限标识(true:有下载权限 false:没有下载权限)")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private boolean authDownloadTag = true;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -104,6 +104,11 @@ public class LawsDataCenterFileServiceImpl extends ServiceImpl<LawsDataCenterFil
|
|||||||
&& (StringUtils.isBlank(authManageIds) || !authManageIds.contains(userId))){
|
&& (StringUtils.isBlank(authManageIds) || !authManageIds.contains(userId))){
|
||||||
file.setAuthManageTag(false);
|
file.setAuthManageTag(false);
|
||||||
}
|
}
|
||||||
|
// 下载权限标识
|
||||||
|
String authDownloadIds = file.getAuthDownloadIds();
|
||||||
|
if (!authDownloadIds.contains(userId)){
|
||||||
|
file.setAuthDownloadTag(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user