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
RuoYi Vue
Commits
2e2882b0
Commit
2e2882b0
authored
Dec 02, 2019
by
RuoYi
Browse files
代码生成防止缓存内的数据没有及时写入到zip文件
parent
bc827ef3
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi/src/main/java/com/ruoyi/project/tool/gen/service/GenTableServiceImpl.java
View file @
2e2882b0
...
@@ -262,6 +262,7 @@ public class GenTableServiceImpl implements IGenTableService
...
@@ -262,6 +262,7 @@ public class GenTableServiceImpl implements IGenTableService
zip
.
putNextEntry
(
new
ZipEntry
(
VelocityUtils
.
getFileName
(
template
,
table
)));
zip
.
putNextEntry
(
new
ZipEntry
(
VelocityUtils
.
getFileName
(
template
,
table
)));
IOUtils
.
write
(
sw
.
toString
(),
zip
,
Constants
.
UTF8
);
IOUtils
.
write
(
sw
.
toString
(),
zip
,
Constants
.
UTF8
);
IOUtils
.
closeQuietly
(
sw
);
IOUtils
.
closeQuietly
(
sw
);
zip
.
flush
();
zip
.
closeEntry
();
zip
.
closeEntry
();
}
}
catch
(
IOException
e
)
catch
(
IOException
e
)
...
...
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