Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
7ab92967
Commit
7ab92967
authored
May 17, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新mapper的@param参数
parent
374ca8aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
guns-vip-gen/src/main/resources/mpTemplates/mapper.java.vm
+5
-4
No files found.
guns-vip-gen/src/main/resources/mpTemplates/mapper.java.vm
View file @
7ab92967
...
@@ -6,6 +6,7 @@ import ${package.EntitySpecResult}.${entity}Result;
...
@@ -6,6 +6,7 @@ import ${package.EntitySpecResult}.${entity}Result;
import
${
superMapperClassPackage
};
import
${
superMapperClassPackage
};
import
com
.
baomidou
.
mybatisplus
.
core
.
metadata
.
IPage
;
import
com
.
baomidou
.
mybatisplus
.
core
.
metadata
.
IPage
;
import
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
;
import
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
;
import
org
.
apache
.
ibatis
.
annotations
.
Param
;
import
java
.
util
.
List
;
import
java
.
util
.
List
;
import
java
.
util
.
Map
;
import
java
.
util
.
Map
;
...
@@ -29,7 +30,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
...
@@ -29,7 +30,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
*
@
author
${
author
}
*
@
author
${
author
}
*
@
Date
${
date
}
*
@
Date
${
date
}
*/
*/
List
<${
entity
}
Result
>
customList
(${
entity
}
Param
paramCondition
);
List
<${
entity
}
Result
>
customList
(
@
Param
(
"paramCondition"
)
${
entity
}
Param
paramCondition
);
/**
/**
*
获取
map
列表
*
获取
map
列表
...
@@ -37,7 +38,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
...
@@ -37,7 +38,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
*
@
author
${
author
}
*
@
author
${
author
}
*
@
Date
${
date
}
*
@
Date
${
date
}
*/
*/
List
<
Map
<
String
,
Object
>>
customMapList
(${
entity
}
Param
paramCondition
);
List
<
Map
<
String
,
Object
>>
customMapList
(
@
Param
(
"paramCondition"
)
${
entity
}
Param
paramCondition
);
/**
/**
*
获取分页实体列表
*
获取分页实体列表
...
@@ -45,7 +46,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
...
@@ -45,7 +46,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
*
@
author
${
author
}
*
@
author
${
author
}
*
@
Date
${
date
}
*
@
Date
${
date
}
*/
*/
Page
<${
entity
}
Result
>
customPageList
(
Page
page
,
${
entity
}
Param
paramCondition
);
Page
<${
entity
}
Result
>
customPageList
(
@
Param
(
"page"
)
Page
page
,
@
Param
(
"paramCondition"
)
${
entity
}
Param
paramCondition
);
/**
/**
*
获取分页
map
列表
*
获取分页
map
列表
...
@@ -53,7 +54,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
...
@@ -53,7 +54,7 @@ public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
*
@
author
${
author
}
*
@
author
${
author
}
*
@
Date
${
date
}
*
@
Date
${
date
}
*/
*/
Page
<
Map
<
String
,
Object
>>
customPageMapList
(
Page
page
,
${
entity
}
Param
paramCondition
);
Page
<
Map
<
String
,
Object
>>
customPageMapList
(
@
Param
(
"page"
)
Page
page
,
@
Param
(
"paramCondition"
)
${
entity
}
Param
paramCondition
);
}
}
#
end
#
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment