From ba64483c43aec682b6575bc8898fa71069cf2c3a Mon Sep 17 00:00:00 2001 From: sunliang <593170460@qq.com> Date: Fri, 15 Dec 2023 17:29:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9minio=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=9D=83=E9=99=90=E6=9F=A5=E8=AF=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3GetEmpower=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MinioController/MinioApiController.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs b/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs index 19dca99..2b0702d 100644 --- a/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs +++ b/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs @@ -1222,45 +1222,45 @@ namespace IBKLinker_Minio.Controller.MinioController string sql = string.Empty; if (!string.IsNullOrEmpty(UserID)) { - sql += "a.USER_ID=" + UserID; + sql += "and a.USER_ID='"+UserID+"'"; } if (!string.IsNullOrEmpty(FileName)) { - sql += "d.File_Name='" + FileName + "'"; + sql += "and d.File_Name='" + FileName + "'"; } if (!string.IsNullOrEmpty(EmpowerType)) { if (EmpowerType == "打印") { - sql += "b.PRINT_FLAG=1"; + sql += "and b.PRINT_FLAG=1"; } if (EmpowerType == "查看") { - sql += "b.VIEW_FLAG=1"; + sql += "and b.VIEW_FLAG=1"; } if (EmpowerType == "上传") { - sql += "b.UPLOAD_FLAG=1"; + sql += "and b.UPLOAD_FLAG=1"; } if (EmpowerType == "编辑") { - sql += "b.EDIT_FLAG=1"; + sql += "and b.EDIT_FLAG=1"; } if (EmpowerType == "移动") { - sql += "b.MOVE_FLAG=1"; + sql += "and b.MOVE_FLAG=1"; } if (EmpowerType == "删除") { - sql += "b.DELETE_FLAG=1"; + sql += "and b.DELETE_FLAG=1"; } if (EmpowerType == "文件夹查看") { - sql += "b.FILE_VIEW_PERMISSIONS=1"; + sql += "and b.FILE_VIEW_PERMISSIONS=1"; } if (EmpowerType == "文件夹控制") { - sql += "b.FILE_CONTROL_PERMISSIONS=1"; + sql += "and b.FILE_CONTROL_PERMISSIONS=1"; } }