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
c22f51d0
Commit
c22f51d0
authored
Oct 30, 2022
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生成文档时导致ConcurrentModificationException的bug
parent
c4f1b7ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
...s/xhx/module/record/service/impl/ApplyLogServiceImpl.java
+5
-1
No files found.
certificate-manager/src/main/java/com/mortals/xhx/module/record/service/impl/ApplyLogServiceImpl.java
View file @
c22f51d0
...
@@ -233,6 +233,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -233,6 +233,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
try
{
try
{
Map
<
String
,
Object
>
data
=
mapper
.
readValue
(
docTemplate
.
getFormContent
(),
Map
.
class
);
Map
<
String
,
Object
>
data
=
mapper
.
readValue
(
docTemplate
.
getFormContent
(),
Map
.
class
);
Map
<
String
,
Object
>
addMap
=
new
HashMap
<>();
//遍历查看是否有图片数据,多选框
//遍历查看是否有图片数据,多选框
data
.
entrySet
().
stream
().
forEach
(
entry
->
{
data
.
entrySet
().
stream
().
forEach
(
entry
->
{
if
(
entry
.
getKey
().
indexOf
(
"@image"
)
!=
-
1
)
{
if
(
entry
.
getKey
().
indexOf
(
"@image"
)
!=
-
1
)
{
...
@@ -242,7 +243,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -242,7 +243,7 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
try
{
try
{
PictureRenderData
pictureRenderData
=
Pictures
.
ofStream
(
new
FileInputStream
(
imagepath
),
PictureType
.
JPEG
)
PictureRenderData
pictureRenderData
=
Pictures
.
ofStream
(
new
FileInputStream
(
imagepath
),
PictureType
.
JPEG
)
.
size
(
100
,
120
).
create
();
.
size
(
100
,
120
).
create
();
data
.
put
(
StrUtil
.
removePrefixIgnoreCase
(
entry
.
getKey
(),
"@"
),
pictureRenderData
);
addMap
.
put
(
StrUtil
.
removePrefixIgnoreCase
(
entry
.
getKey
(),
"@"
),
pictureRenderData
);
//entry.setValue(pictureRenderData);
//entry.setValue(pictureRenderData);
}
catch
(
FileNotFoundException
e
)
{
}
catch
(
FileNotFoundException
e
)
{
log
.
error
(
"error"
,
e
);
log
.
error
(
"error"
,
e
);
...
@@ -278,6 +279,9 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
...
@@ -278,6 +279,9 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
builder
.
bind
(
entry
.
getKey
(),
new
MultipleRowTableRenderPolicy
());
builder
.
bind
(
entry
.
getKey
(),
new
MultipleRowTableRenderPolicy
());
}
}
});
});
if
(
addMap
.
size
()>
0
){
data
.
putAll
(
addMap
);
}
//查询是否有多选框,
//查询是否有多选框,
//获取模板文件地址
//获取模板文件地址
String
path
=
rootPath
+
docTemplate
.
getTemplatePath
();
String
path
=
rootPath
+
docTemplate
.
getTemplatePath
();
...
...
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