File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
src/SmartCode.Generator/RazorTemplates/CSharp/SqlMap-Partials Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 51
51
{
52
52
<!-- 获取数据列-->
53
53
<Statement Id =" Query" @queryStatementResultMap >
54
- SELECT
55
- <IsNotEmpty Prepend =" Top" Property =" Taken" >
56
- (@(dbPrefix )Taken )
54
+
55
+ select * from (
56
+
57
+ SELECT
58
+
59
+ T .* From @table .Name T
60
+ < Include RefId = " QueryParams" / >
61
+ < Switch Prepend = " Order By" Property = " OrderBy" >
62
+ < Default >
63
+ T .@pkCol .Name Desc
64
+ < / Default >
65
+ < / Switch >
66
+
67
+ )
68
+ <IsNotEmpty Prepend =" where" Property =" Taken" >
69
+ ROWNUM < (@(dbPrefix )Taken )
57
70
</IsNotEmpty >
58
- T .* From @table.Name T
59
- <Include RefId =" QueryParams" />
60
- <Switch Prepend =" Order By" Property =" OrderBy" >
61
- <Default >
62
- T .@pkCol .Name Desc
63
- </Default >
64
- </Switch >
65
71
</Statement >
66
72
}
You can’t perform that action at this time.
0 commit comments