修复查询用户表报错问题

master
孙亮 1 year ago
parent 972e970603
commit 16bef0e9ed

@ -317,7 +317,7 @@ namespace IBKLinker_Minio.Controller.MinioController
{
sql += " and a.ROLE_ID =" + minioUser.RoleId + "";
}
request.data = db.Query<MinioUser>("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<MinioUser>("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<MinioRolePermission> result = new List<MinioRolePermission>();
if (!string.IsNullOrEmpty(minioRolePermission.Id.ToString()))
if (minioRolePermission.Id >0)
{
sql += " and ID =" + minioRolePermission.Id;
}

Loading…
Cancel
Save