@@ -67,7 +67,7 @@ public SelectedQueryProvider(Select0Provider select, Expression selector)
6767 var index = - 10000 ; //临时规则,不返回 as1
6868
6969 if ( selector != null )
70- _comonExp . ReadAnonymousField ( _select . _tables , field , _map , ref index , selector , null , null , _select . _whereGlobalFilter , null , null , false ) ; //不走 DTO 映射,不处理 IncludeMany
70+ _comonExp . ReadAnonymousField ( _select . _tables , _select . _tableRule , field , _map , ref index , selector , null , null , _select . _whereGlobalFilter , null , null , false ) ; //不走 DTO 映射,不处理 IncludeMany
7171 _field = field . ToString ( ) ;
7272 }
7373
@@ -162,7 +162,7 @@ public ISelectedQuery<TOut> OrderByIf<TMember>(bool condition, Expression<Func<T
162162 {
163163 if ( condition == false ) return this ;
164164 _lambdaParameter = column ? . Parameters [ 0 ] ;
165- var sql = _comonExp . ExpressionWhereLambda ( null , column , this , null , null ) ;
165+ var sql = _comonExp . ExpressionWhereLambda ( null , null , column , this , null , null ) ;
166166 var method = _select . GetType ( ) . GetMethod ( "OrderBy" , new [ ] { typeof ( string ) , typeof ( object ) } ) ;
167167 method . Invoke ( _select , new object [ ] { descending ? $ "{ sql } DESC" : sql , null } ) ;
168168 return this ;
@@ -174,7 +174,7 @@ public ISelectedQuery<TOut> WhereIf(bool condition, Expression<Func<TOut, bool>>
174174 {
175175 if ( condition == false ) return this ;
176176 _lambdaParameter = exp ? . Parameters [ 0 ] ;
177- var sql = _comonExp . ExpressionWhereLambda ( null , exp , this , null , null ) ;
177+ var sql = _comonExp . ExpressionWhereLambda ( null , null , exp , this , null , null ) ;
178178 var method = _select . GetType ( ) . GetMethod ( "Where" , new [ ] { typeof ( string ) , typeof ( object ) } ) ;
179179 method . Invoke ( _select , new object [ ] { sql , null } ) ;
180180 return this ;
0 commit comments