usertest
cjy 2 months ago
parent 76ff891011
commit a0e5a1d50f

@ -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) )

Loading…
Cancel
Save