Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
c7300ddd
Commit
c7300ddd
authored
Jul 12, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/y_project/RuoYi
parents
df12e06a
e55a42c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/main/java/com/ruoyi/project/tool/gen/controller/GenController.java
+2
-3
src/main/resources/templates/tool/gen/gen.html
+1
-1
No files found.
src/main/java/com/ruoyi/project/tool/gen/controller/GenController.java
View file @
c7300ddd
...
...
@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.
alibaba.fastjson.JSON
;
import
com.
ruoyi.common.support.Convert
;
import
com.ruoyi.framework.aspectj.lang.annotation.Log
;
import
com.ruoyi.framework.aspectj.lang.constant.BusinessType
;
import
com.ruoyi.framework.web.controller.BaseController
;
...
...
@@ -77,8 +77,7 @@ public class GenController extends BaseController
@ResponseBody
public
void
batchGenCode
(
HttpServletResponse
response
,
String
tables
)
throws
IOException
{
String
[]
tableNames
=
new
String
[]
{};
tableNames
=
JSON
.
parseArray
(
tables
).
toArray
(
tableNames
);
String
[]
tableNames
=
Convert
.
toStrArray
(
tables
);
byte
[]
data
=
genService
.
generatorCode
(
tableNames
);
response
.
reset
();
response
.
setHeader
(
"Content-Disposition"
,
"attachment; filename=\"ruoyi.zip\""
);
...
...
src/main/resources/templates/tool/gen/gen.html
View file @
c7300ddd
...
...
@@ -92,7 +92,7 @@
return
;
}
$
.
modal
.
confirm
(
"确认要生成选中的"
+
rows
.
length
+
"条数据吗?"
,
function
()
{
location
.
href
=
prefix
+
"/batchGenCode?tables="
+
JSON
.
stringify
(
rows
)
;
location
.
href
=
prefix
+
"/batchGenCode?tables="
+
rows
;
layer
.
msg
(
'执行成功,正在生成代码请稍后…'
,
{
icon
:
1
});
});
}
...
...
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