Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-sunac-report
sunac_report
Commits
6fee7c24
Commit
6fee7c24
authored
Oct 11, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
专为文档修改
parent
774625fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ReportToPdfController.java
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
+5
-5
No files found.
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
View file @
6fee7c24
...
...
@@ -101,7 +101,7 @@ public class ReportToPdfController extends BaseController {
Paragraph
paragraphPath1
=
new
Paragraph
();
if
(
list
!=
null
&&
list
.
size
()
!=
0
)
{
for
(
ReportAttachmentEntity
reportAttachmentEntity
:
list
)
{
Chunk
chunk
=
new
Chunk
(
URLDecoder
.
decode
(
URLDecoder
.
decode
(
reportAttachmentEntity
.
getAttachmentPath
().
substring
(
reportAttachmentEntity
.
getAttachmentPath
().
lastIndexOf
(
"/"
)))
),
urlfont
);
Chunk
chunk
=
new
Chunk
(
reportAttachmentEntity
.
getAttachmentName
(
),
urlfont
);
paragraphPath1
.
add
(
chunk
);
paragraphPath1
.
add
(
Chunk
.
NEWLINE
);
}
...
...
@@ -273,14 +273,14 @@ public class ReportToPdfController extends BaseController {
//获取附件列表
ReportAttachmentEntity
reportAttachmentBean1
=
new
ReportAttachmentEntity
();
reportAttachmentBean
.
setReportId
(
reportEntity
.
getId
());
reportAttachmentBean
.
setAttachmentType
(
"1"
);
List
<
ReportAttachmentEntity
>
list1
=
reportService
.
getAttachmentInfo
(
reportAttachmentBean
);
reportAttachmentBean
1
.
setReportId
(
reportEntity
.
getId
());
reportAttachmentBean
1
.
setAttachmentType
(
"1"
);
List
<
ReportAttachmentEntity
>
list1
=
reportService
.
getAttachmentInfo
(
reportAttachmentBean
1
);
Paragraph
paragraphPath2
=
new
Paragraph
();
if
(
list1
!=
null
&&
list1
.
size
()
!=
0
)
{
for
(
ReportAttachmentEntity
reportAttachmentEntity
:
list1
)
{
Chunk
chunk
=
new
Chunk
(
reportAttachmentEntity
.
getAttachment
Path
(),
urlfont
);
Chunk
chunk
=
new
Chunk
(
reportAttachmentEntity
.
getAttachment
Name
(),
urlfont
);
paragraphPath2
.
add
(
chunk
);
paragraphPath2
.
add
(
Chunk
.
NEWLINE
);
}
...
...
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