Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
bfade3f9
Commit
bfade3f9
authored
Mar 13, 2018
by
xiandafu
Browse files
代码生成
parent
98ca1176
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin-core/src/main/resources/codeTemplate/java/controller.java
View file @
bfade3f9
...
...
@@ -60,7 +60,7 @@ public class ${entity.name}Controller{
\
@Autowired
private
$
{
entity
.
name
}
Service
$
{
service
};
@Autowired
\
@Autowired
FileService
fileService
;
/* 页面 */
...
...
@@ -169,7 +169,7 @@ public class ${entity.name}Controller{
if
(
is
==
null
)
{
throw
new
PlatformException
(
"模板资源不存在:"
+
excelTemplate
);
}
FileItem
item
=
fileService
.
createFileTemp
(
"${entity.displayName}_"
+
DateUtil
.
now
(
"yyyyMMddHHmmss"
)
".xls"
);
FileItem
item
=
fileService
.
createFileTemp
(
"${entity.displayName}_"
+
DateUtil
.
now
(
"yyyyMMddHHmmss"
)
+
".xls"
);
OutputStream
os
=
item
.
openOutpuStream
();
Context
context
=
new
Context
();
context
.
putVar
(
"list"
,
list
);
...
...
Write
Preview
Supports
Markdown
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