|
|
|
@ -1727,7 +1727,13 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public DataResult<List<DeptSelectRes>> GetDeptList(string orgId = "", string queryKey = "")
|
|
|
|
|
{
|
|
|
|
|
var ids = GetOrgIdsByParent(long.Parse(orgId), db);
|
|
|
|
|
|
|
|
|
|
//var ids = GetOrgIdsByParent(long.Parse(orgId), db);
|
|
|
|
|
var ids = new List<long>();
|
|
|
|
|
if (orgId.IsNotEmptyOrNull())
|
|
|
|
|
{
|
|
|
|
|
ids = GetOrgIdsByParent(long.Parse(orgId), db);
|
|
|
|
|
}
|
|
|
|
|
//a.ParentId == long.Parse(orgId)
|
|
|
|
|
var list = db.Queryable<SysOrg>()
|
|
|
|
|
.WhereIF(orgId.IsNotEmptyOrNull(), a => ids.Contains(a.Id) )
|
|
|
|
|