修改minio文件上传权限查询接口GetEmpower逻辑

master
孙亮 11 months ago
parent 1071008100
commit ba64483c43

@ -1222,45 +1222,45 @@ namespace IBKLinker_Minio.Controller.MinioController
string sql = string.Empty; string sql = string.Empty;
if (!string.IsNullOrEmpty(UserID)) if (!string.IsNullOrEmpty(UserID))
{ {
sql += "a.USER_ID=" + UserID; sql += "and a.USER_ID='"+UserID+"'";
} }
if (!string.IsNullOrEmpty(FileName)) if (!string.IsNullOrEmpty(FileName))
{ {
sql += "d.File_Name='" + FileName + "'"; sql += "and d.File_Name='" + FileName + "'";
} }
if (!string.IsNullOrEmpty(EmpowerType)) if (!string.IsNullOrEmpty(EmpowerType))
{ {
if (EmpowerType == "打印") if (EmpowerType == "打印")
{ {
sql += "b.PRINT_FLAG=1"; sql += "and b.PRINT_FLAG=1";
} }
if (EmpowerType == "查看") if (EmpowerType == "查看")
{ {
sql += "b.VIEW_FLAG=1"; sql += "and b.VIEW_FLAG=1";
} }
if (EmpowerType == "上传") if (EmpowerType == "上传")
{ {
sql += "b.UPLOAD_FLAG=1"; sql += "and b.UPLOAD_FLAG=1";
} }
if (EmpowerType == "编辑") if (EmpowerType == "编辑")
{ {
sql += "b.EDIT_FLAG=1"; sql += "and b.EDIT_FLAG=1";
} }
if (EmpowerType == "移动") if (EmpowerType == "移动")
{ {
sql += "b.MOVE_FLAG=1"; sql += "and b.MOVE_FLAG=1";
} }
if (EmpowerType == "删除") if (EmpowerType == "删除")
{ {
sql += "b.DELETE_FLAG=1"; sql += "and b.DELETE_FLAG=1";
} }
if (EmpowerType == "文件夹查看") if (EmpowerType == "文件夹查看")
{ {
sql += "b.FILE_VIEW_PERMISSIONS=1"; sql += "and b.FILE_VIEW_PERMISSIONS=1";
} }
if (EmpowerType == "文件夹控制") if (EmpowerType == "文件夹控制")
{ {
sql += "b.FILE_CONTROL_PERMISSIONS=1"; sql += "and b.FILE_CONTROL_PERMISSIONS=1";
} }
} }

Loading…
Cancel
Save