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 27
27
Select TT .* From
28
28
(Select ROW_NUMBER () Over (Order By T .@pkCol .Name Desc ) Row_Index ,T .* From @table .Name T
29
29
< 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 )
31
31
</Statement >
32
32
}
33
33
@section GetEntity
51
51
{
52
52
<!-- 获取数据列-->
53
53
<Statement Id =" Query" @queryStatementResultMap >
54
-
55
54
select * from (
56
55
57
56
SELECT
58
-
59
57
T .* From @table .Name T
60
58
< Include RefId = " QueryParams" / >
61
59
< Switch Prepend = " Order By" Property = " OrderBy" >
62
60
< Default >
63
61
T .@pkCol .Name Desc
64
62
< / Default >
65
63
< / Switch >
66
-
67
- )
64
+ )
68
65
<IsNotEmpty Prepend =" where" Property =" Taken" >
69
- ROWNUM < (@(dbPrefix )Taken )
66
+ <![CDATA[
67
+ ROWNUM <= @(dbPrefix)Taken
68
+ ]] >
70
69
</IsNotEmpty >
71
70
</Statement >
72
71
}
You can’t perform that action at this time.
0 commit comments