File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/SmartCode.Generator/RazorTemplates/CSharp/SqlMap-Partials Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 2727 Select TT .* From
2828 (Select ROW_NUMBER () Over (Order By T .@pkCol .Name Desc ) Row_Index ,T .* From @table .Name T
2929 < Include RefId = " QueryParams" / > ) TT
30- Where TT .Row_Index Between ((@@ PageIndex- 1 )* @@ PageSize+ 1 ) And (@@ PageIndex* @@ PageSize )
30+ Where TT .Row_Index Between ((@( dbPrefix ) PageIndex - 1 )* @( dbPrefix ) PageSize + 1 ) And (@( dbPrefix ) PageIndex * @( dbPrefix ) PageSize )
3131 </Statement >
3232}
3333@section GetEntity
5151 {
5252 <!-- 获取数据列-->
5353 <Statement Id =" Query" @queryStatementResultMap >
54-
5554 select * from (
5655
5756 SELECT
58-
5957 T .* From @table .Name T
6058 < Include RefId = " QueryParams" / >
6159 < Switch Prepend = " Order By" Property = " OrderBy" >
6260 < Default >
6361 T .@pkCol .Name Desc
6462 < / Default >
6563 < / Switch >
66-
67- )
64+ )
6865 <IsNotEmpty Prepend =" where" Property =" Taken" >
69- ROWNUM < (@(dbPrefix )Taken )
66+ <![CDATA[
67+ ROWNUM <= @(dbPrefix)Taken
68+ ]] >
7069 </IsNotEmpty >
7170 </Statement >
7271}
You can’t perform that action at this time.
0 commit comments