From 16bef0e9ed295d6866968a9c8ec30f835ef20b2a Mon Sep 17 00:00:00 2001 From: sunliang <593170460@qq.com> Date: Tue, 14 Nov 2023 09:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=A1=A8=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/MinioController/MinioApiController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs b/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs index 556622b..d8cf81d 100644 --- a/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs +++ b/IBKLinker-Minio/Controller/MinioController/MinioApiController.cs @@ -317,7 +317,7 @@ namespace IBKLinker_Minio.Controller.MinioController { sql += " and a.ROLE_ID =" + minioUser.RoleId + ""; } - request.data = db.Query("select a.*,b.ROLE_ID as RoleName from MINIO_USER a left join MINIO_ROLE_PERMISSION b on a. ROLE_ID=b.ROLE_ID where 1=1 " + sql + " ORDER BY USER_ID"); + request.data = db.Query("select a.*,b.ID as RoleName from MINIO_USER a left join MINIO_ROLE_PERMISSION b on a. ROLE_ID=b.ID where 1=1 " + sql + " ORDER BY USER_ID"); request.code = "0"; } } @@ -590,7 +590,7 @@ namespace IBKLinker_Minio.Controller.MinioController { string sql = string.Empty; IList result = new List(); - if (!string.IsNullOrEmpty(minioRolePermission.Id.ToString())) + if (minioRolePermission.Id >0) { sql += " and ID =" + minioRolePermission.Id; }