Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
certificate-print
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
廖旭伟
certificate-print
Commits
b4a28fa7
Commit
b4a28fa7
authored
Nov 15, 2022
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复模板中出现动态表格时可能会导致重复生成动态表格内容标签的bug
parent
cedc0461
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/impl/CertificateCatalogServiceImpl.java
...rtificate/service/impl/CertificateCatalogServiceImpl.java
+6
-0
No files found.
certificate-manager/src/main/java/com/mortals/xhx/module/certificate/service/impl/CertificateCatalogServiceImpl.java
View file @
b4a28fa7
...
@@ -155,6 +155,7 @@ public class CertificateCatalogServiceImpl extends AbstractCRUDServiceImpl<Certi
...
@@ -155,6 +155,7 @@ public class CertificateCatalogServiceImpl extends AbstractCRUDServiceImpl<Certi
cons
.
setUploadFileUrl
(
uploadUrl
);
cons
.
setUploadFileUrl
(
uploadUrl
);
if
(
type
.
equalsIgnoreCase
(
ComponentEnum
.
DYNAMIC_TABLE
.
getValue
()))
{
if
(
type
.
equalsIgnoreCase
(
ComponentEnum
.
DYNAMIC_TABLE
.
getValue
()))
{
HashSet
<
String
>
dhs
=
new
HashSet
<>();
//去除重复标签
List
<
TableColItem
>
colList
=
new
ArrayList
<>();
List
<
TableColItem
>
colList
=
new
ArrayList
<>();
//表格 结构化绑定数据
//表格 结构化绑定数据
ConfigureBuilder
builderTable
=
Configure
.
builder
();
ConfigureBuilder
builderTable
=
Configure
.
builder
();
...
@@ -164,6 +165,11 @@ public class CertificateCatalogServiceImpl extends AbstractCRUDServiceImpl<Certi
...
@@ -164,6 +165,11 @@ public class CertificateCatalogServiceImpl extends AbstractCRUDServiceImpl<Certi
XWPFTemplate
templateTable
=
XWPFTemplate
.
compile
(
filepath
,
builderTable
.
build
());
XWPFTemplate
templateTable
=
XWPFTemplate
.
compile
(
filepath
,
builderTable
.
build
());
for
(
MetaTemplate
col
:
templateTable
.
getElementTemplates
())
{
for
(
MetaTemplate
col
:
templateTable
.
getElementTemplates
())
{
if
(
dhs
.
contains
(
col
.
variable
())){
continue
;
}
else
{
dhs
.
add
(
col
.
variable
());
}
String
colVal
=
StrUtil
.
strip
(
col
.
variable
(),
"["
,
"]"
);
String
colVal
=
StrUtil
.
strip
(
col
.
variable
(),
"["
,
"]"
);
if
(!
StrUtil
.
startWith
(
colVal
,
label
))
{
if
(!
StrUtil
.
startWith
(
colVal
,
label
))
{
continue
;
continue
;
...
...
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