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"; } }