Commit 6fee7c24 by Java-李昕颖

专为文档修改

parent 774625fe
...@@ -101,7 +101,7 @@ public class ReportToPdfController extends BaseController { ...@@ -101,7 +101,7 @@ public class ReportToPdfController extends BaseController {
Paragraph paragraphPath1 = new Paragraph(); Paragraph paragraphPath1 = new Paragraph();
if (list != null && list.size() != 0) { if (list != null && list.size() != 0) {
for (ReportAttachmentEntity reportAttachmentEntity : list) { 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);
paragraphPath1.add(Chunk.NEWLINE); paragraphPath1.add(Chunk.NEWLINE);
} }
...@@ -273,14 +273,14 @@ public class ReportToPdfController extends BaseController { ...@@ -273,14 +273,14 @@ public class ReportToPdfController extends BaseController {
//获取附件列表 //获取附件列表
ReportAttachmentEntity reportAttachmentBean1 = new ReportAttachmentEntity(); ReportAttachmentEntity reportAttachmentBean1 = new ReportAttachmentEntity();
reportAttachmentBean.setReportId(reportEntity.getId()); reportAttachmentBean1.setReportId(reportEntity.getId());
reportAttachmentBean.setAttachmentType("1"); reportAttachmentBean1.setAttachmentType("1");
List<ReportAttachmentEntity> list1 = reportService.getAttachmentInfo(reportAttachmentBean); List<ReportAttachmentEntity> list1 = reportService.getAttachmentInfo(reportAttachmentBean1);
Paragraph paragraphPath2 = new Paragraph(); Paragraph paragraphPath2 = new Paragraph();
if (list1 != null && list1.size() != 0) { if (list1 != null && list1.size() != 0) {
for (ReportAttachmentEntity reportAttachmentEntity : list1) { for (ReportAttachmentEntity reportAttachmentEntity : list1) {
Chunk chunk = new Chunk(reportAttachmentEntity.getAttachmentPath(),urlfont); Chunk chunk = new Chunk(reportAttachmentEntity.getAttachmentName(),urlfont);
paragraphPath2.add(chunk); paragraphPath2.add(chunk);
paragraphPath2.add(Chunk.NEWLINE); paragraphPath2.add(Chunk.NEWLINE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment