@ -228,7 +228,7 @@ public class ClientCommonService : IClientCommonService
var queryData1 = tenantDb . Queryable < InfoClient > ( ) . ClearFilter < ISharedOrgId > ( ) . Where ( c = > c . Status = = StatusEnum . Enable . ToEnumInt ( ) ) . Where ( exp . ToExpression ( ) ) ;
var queryData0 = tenantDb . UnionAll ( queryData , queryData1 ) ;
var queryData0 = tenantDb . UnionAll ( queryData , queryData1 ) .Distinct ( ) ;
//code = code.ToLower();
var data = await queryData0
. InnerJoin < InfoClientTag > ( ( a , b ) = > a . Id = = b . ClientId )
@ -1312,7 +1312,7 @@ public class ClientCommonService : IClientCommonService
var queryData1 = tenantDb . Queryable < InfoClient > ( ) . ClearFilter < ISharedOrgId > ( ) . Where ( c = > c . Status = = StatusEnum . Enable . ToEnumInt ( ) ) . Where ( exp . ToExpression ( ) ) ;
var queryData0 = tenantDb . UnionAll ( queryData , queryData1 ) ;
var queryData0 = tenantDb . UnionAll ( queryData , queryData1 ) .Distinct ( ) ;
//code = code.ToLower();
var data = await queryData0 //tenantDb.Queryable<InfoClient>()//.Where(a=> tenantDb.Ado.SqlQuery<dynamic>(sql, new SugarParameter($"@ClientId", a.Id)).Contains(user.UserId))
. InnerJoin < InfoClientTag > ( ( a , b ) = > a . Id = = b . ClientId )