/// <summary> /// 重写过滤 /// </summary> /// <returns></returns> public override IQueryable <ProcessTaskReport> GetAll() { //add 20181210增加过滤,如果当前用户是独立用户 if (AbpSession.IsSeparateUser()) { return(Repository.GetAll().Where(o => o.ProcessTask.CreatorUserId == AbpSession.UserId.Value)); } return(Repository.GetAll()); }