Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
appbuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
appbuild
Commits
cde02a3d
Commit
cde02a3d
authored
May 30, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分生成代码逻辑
parent
df321b0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
...ase/system/gentable/service/impl/GentableServiceImpl.java
+0
-3
appbuild-manager/src/main/resources/template/doc/base.docx
appbuild-manager/src/main/resources/template/doc/base.docx
+0
-0
No files found.
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
View file @
cde02a3d
...
@@ -580,14 +580,11 @@ public class GentableServiceImpl extends AbstractCRUDServiceImpl<GentableDao, Ge
...
@@ -580,14 +580,11 @@ public class GentableServiceImpl extends AbstractCRUDServiceImpl<GentableDao, Ge
Map
data
=
FreeMarkerUtils
.
prepareSetFreeMarkerDataByDoc
(
list
,
projectInfo
);
Map
data
=
FreeMarkerUtils
.
prepareSetFreeMarkerDataByDoc
(
list
,
projectInfo
);
ConfigureBuilder
builder
=
Configure
.
builder
();
ConfigureBuilder
builder
=
Configure
.
builder
();
builder
.
bind
(
"columns"
,
new
MultipleRowTableRenderPolicy
());
builder
.
bind
(
"columns"
,
new
MultipleRowTableRenderPolicy
());
Configure
config
=
Configure
.
builder
().
useSpringEL
().
bind
(
"columns"
,
new
MultipleRowTableRenderPolicy
()).
build
();
Configure
config
=
Configure
.
builder
().
useSpringEL
().
bind
(
"columns"
,
new
MultipleRowTableRenderPolicy
()).
build
();
XWPFTemplate
template
=
null
;
XWPFTemplate
template
=
null
;
ByteArrayOutputStream
byteArrayOutputStream
=
null
;
ByteArrayOutputStream
byteArrayOutputStream
=
null
;
try
{
try
{
ClassPathResource
classPathResource
=
new
ClassPathResource
(
"template/doc/base.docx"
);
ClassPathResource
classPathResource
=
new
ClassPathResource
(
"template/doc/base.docx"
);
// InputStream inputStream = classPathResource.getInputStream();
template
=
XWPFTemplate
.
compile
(
classPathResource
.
getInputStream
(),
config
).
render
(
data
);
template
=
XWPFTemplate
.
compile
(
classPathResource
.
getInputStream
(),
config
).
render
(
data
);
byteArrayOutputStream
=
new
ByteArrayOutputStream
();
byteArrayOutputStream
=
new
ByteArrayOutputStream
();
template
.
write
(
byteArrayOutputStream
);
template
.
write
(
byteArrayOutputStream
);
...
...
appbuild-manager/src/main/resources/template/doc/base.docx
0 → 100644
View file @
cde02a3d
File added
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