mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 10:54:46 +08:00
完成资源分配前端模块化处理
This commit is contained in:
@@ -19,7 +19,9 @@ namespace OpenAuth.Repository
|
||||
|
||||
public IEnumerable<Resource> LoadInOrgs(params int[] orgId)
|
||||
{
|
||||
var result = from resource in Context.Resources.Where(u => orgId.Contains(u.CategoryId)) select resource;
|
||||
bool isZero = orgId.Length == 1 && orgId[0] == 0; //判断传进来的是否为0
|
||||
var result = from resource in Context.Resources.Where(u =>isZero
|
||||
|| orgId.Contains(u.CategoryId)) select resource;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user