varquery=queryData.Where(c=>c.Status==StatusEnum.Enable.ToEnumInt()||SqlFunc.Subqueryable<InfoClientStakeholder>().Where("SYSDATE() BETWEEN StartDate and EndDate").Where(c0=>userids.Contains(c.CreateBy.ToString())).Any())//TenantDb.Queryable<InfoClient>()
vardata=awaittenantDb.Queryable<InfoClient>()//.Where(a=> tenantDb.Ado.SqlQuery<dynamic>(sql, new SugarParameter($"@ClientId", a.Id)).Contains(user.UserId))
vardata=awaitquery//tenantDb.Queryable<InfoClient>()//.Where(a=> tenantDb.Ado.SqlQuery<dynamic>(sql, new SugarParameter($"@ClientId", a.Id)).Contains(user.UserId))
.Where((a,b)=>a.Status==StatusEnum.Enable.ToEnumInt()||SqlFunc.Subqueryable<InfoClientStakeholder>().Where("SYSDATE() BETWEEN StartDate and EndDate").Where(c=>c.ClientId==a.Id&&userids.Contains(c.CreateBy.ToString())).Any())