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
86a18cdd
Commit
86a18cdd
authored
Aug 08, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分sqlXml生成缺陷
parent
52c20b14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
appbuild-manager/pom.xml
appbuild-manager/pom.xml
+6
-0
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
...ase/system/gentable/service/impl/GentableServiceImpl.java
+5
-6
appbuild-manager/src/main/resources/template/doc/base.docx
appbuild-manager/src/main/resources/template/doc/base.docx
+0
-0
pom.xml
pom.xml
+4
-0
No files found.
appbuild-manager/pom.xml
View file @
86a18cdd
...
@@ -211,6 +211,12 @@
...
@@ -211,6 +211,12 @@
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-resources-plugin
</artifactId>
<artifactId>
maven-resources-plugin
</artifactId>
<configuration>
<encoding>
UTF-8
</encoding>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>
docx
</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
<executions>
<executions>
<execution>
<execution>
<id>
copy-bin
</id>
<id>
copy-bin
</id>
...
...
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
View file @
86a18cdd
...
@@ -38,10 +38,7 @@ import org.springframework.stereotype.Service;
...
@@ -38,10 +38,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.io.ByteArrayOutputStream
;
import
java.io.*
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.StringWriter
;
import
java.util.*
;
import
java.util.*
;
import
java.util.List
;
import
java.util.List
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
...
@@ -648,8 +645,10 @@ public class GentableServiceImpl extends AbstractCRUDServiceImpl<GentableDao, Ge
...
@@ -648,8 +645,10 @@ public class GentableServiceImpl extends AbstractCRUDServiceImpl<GentableDao, Ge
XWPFTemplate
template
=
null
;
XWPFTemplate
template
=
null
;
ByteArrayOutputStream
byteArrayOutputStream
=
null
;
ByteArrayOutputStream
byteArrayOutputStream
=
null
;
try
{
try
{
ClassPathResource
classPathResource
=
new
ClassPathResource
(
"template/doc/base.docx"
);
template
=
XWPFTemplate
.
compile
(
classPathResource
.
getInputStream
(),
config
).
render
(
data
);
InputStream
in
=
this
.
getClass
().
getResourceAsStream
(
"/template/doc/base.docx"
);
// ClassPathResource classPathResource = new ClassPathResource("template/doc/base.docx");
template
=
XWPFTemplate
.
compile
(
in
,
config
).
render
(
data
);
byteArrayOutputStream
=
new
ByteArrayOutputStream
();
byteArrayOutputStream
=
new
ByteArrayOutputStream
();
template
.
write
(
byteArrayOutputStream
);
template
.
write
(
byteArrayOutputStream
);
return
byteArrayOutputStream
.
toByteArray
();
return
byteArrayOutputStream
.
toByteArray
();
...
...
appbuild-manager/src/main/resources/template/doc/base.docx
View file @
86a18cdd
No preview for this file type
pom.xml
View file @
86a18cdd
...
@@ -72,6 +72,10 @@
...
@@ -72,6 +72,10 @@
<configuration>
<configuration>
<delimiters>
@
</delimiters>
<delimiters>
@
</delimiters>
<useDefaultDelimiters>
false
</useDefaultDelimiters>
<useDefaultDelimiters>
false
</useDefaultDelimiters>
<encoding>
UTF-8
</encoding>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>
docx
</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</configuration>
</plugin>
</plugin>
<!-- 用于编译的plugin -->
<!-- 用于编译的plugin -->
...
...
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