mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 09:44:28 +08:00
1.0正式版
修复beta版未能解决的BUG; 全面修改页面结构,采用面向对象JS开发; 优化进出库管理示例,对资源的应用更加清晰; 完整的SQL初始数据;
This commit is contained in:
@@ -38,5 +38,19 @@ namespace OpenAuth.Repository
|
||||
|
||||
return Find(u => u.CascadeId.Contains(cascadeId) && u.Id != orgId);
|
||||
}
|
||||
|
||||
public IEnumerable<Org> GetSubWithOwn(int orgId)
|
||||
{
|
||||
string cascadeId = "0.";
|
||||
if (orgId != 0)
|
||||
{
|
||||
var org = FindSingle(u => u.Id == orgId);
|
||||
if (org == null)
|
||||
throw new Exception("未能找到指定对象信息");
|
||||
cascadeId = org.CascadeId;
|
||||
}
|
||||
|
||||
return Find(u => u.CascadeId.Contains(cascadeId));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user