Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
3073be76
Commit
3073be76
authored
Jul 15, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码生成器调整
parent
f6048d96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Controller.java.vm
...fu-codegen/src/main/resources/template/Controller.java.vm
+2
-2
Service.java.vm
.../yifu-codegen/src/main/resources/template/Service.java.vm
+1
-1
ServiceImpl.java.vm
...u-codegen/src/main/resources/template/ServiceImpl.java.vm
+1
-1
No files found.
yifu-visual/yifu-codegen/src/main/resources/template/Controller.java.vm
View file @
3073be76
...
...
@@ -68,7 +68,7 @@ public class ${className}Controller {
*/
@
ApiOperation
(
value
=
"简单分页查询"
)
@
GetMapping
(
"/page"
)
public
R
<
IPage
<${
className
}>>
get
${
className
}
Page
(
Page
<${
className
}>
page
,
${
className
}
${
classname
})
{
public
R
<
IPage
<${
className
}>>
get
${
className
}
Page
(
Page
<${
className
}>
page
,
${
className
}
SearchVo
${
classname
})
{
return
new
R
<>(${
classname
}
Service
.
get
${
className
}
Page
(
page
,${
classname
}));
}
/**
...
...
@@ -79,7 +79,7 @@ public class ${className}Controller {
@
Operation
(
summary
=
"不分页查询"
,
description
=
"不分页查询"
)
@
PostMapping
(
"/noPage"
)
//@
PreAuthorize
(
"@pms.hasPermission('${moduleName}_${pathName}_get')"
)
public
R
<
List
<${
className
}>>
get
${
className
}
NoPage
(@
RequestBody
${
className
}
${
classname
})
{
public
R
<
List
<${
className
}>>
get
${
className
}
NoPage
(@
RequestBody
${
className
}
SearchVo
${
classname
})
{
return
R
.
ok
(${
classname
}
Service
.
list
(
Wrappers
.
query
(${
classname
})));
}
...
...
yifu-visual/yifu-codegen/src/main/resources/template/Service.java.vm
View file @
3073be76
...
...
@@ -32,7 +32,7 @@ public interface ${className}Service extends IService<${className}> {
*
@
param
${
classname
}
${
comments
}
*
@
return
*/
IPage
<${
className
}>
get
${
className
}
Page
(
Page
<${
className
}>
page
,
${
className
}
${
classname
});
IPage
<${
className
}>
get
${
className
}
Page
(
Page
<${
className
}>
page
,
${
className
}
SearchVo
${
classname
});
R
<
List
<
ErrorMessage
>>
importDiy
(
InputStream
inputStream
);
...
...
yifu-visual/yifu-codegen/src/main/resources/template/ServiceImpl.java.vm
View file @
3073be76
...
...
@@ -36,7 +36,7 @@ public class ${className}ServiceImpl extends ServiceImpl<${className}Mapper, ${c
*
@
return
*/
@
Override
public
IPage
<${
className
}>
get
${
className
}
Page
(
Page
<${
className
}>
page
,
${
className
}
${
classname
}){
public
IPage
<${
className
}>
get
${
className
}
Page
(
Page
<${
className
}>
page
,
${
className
}
SearchVo
${
classname
}){
return
baseMapper
.
get
${
className
}
Page
(
page
,${
classname
});
}
/**
...
...
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