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