From 6a4398dd5781ce3cd8e6703f7ff56daa1a83467f Mon Sep 17 00:00:00 2001 From: dongqin <123456> Date: Wed, 18 Dec 2019 09:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0pdf=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/lyms/hospitalapi/lcdcf/LcdcfHisService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/hospitalapi/lcdcf/LcdcfHisService.java b/platform-operate-api/src/main/java/com/lyms/hospitalapi/lcdcf/LcdcfHisService.java index e4b4f7e..46c291f 100644 --- a/platform-operate-api/src/main/java/com/lyms/hospitalapi/lcdcf/LcdcfHisService.java +++ b/platform-operate-api/src/main/java/com/lyms/hospitalapi/lcdcf/LcdcfHisService.java @@ -203,7 +203,7 @@ public class LcdcfHisService { } public void createFile(Document doc, JSONObject jsonObject) throws DocumentException { - String reportName = jsonObject.getString("title"); + String reportName = jsonObject.getString("listTypeName"); String hospitalName = jsonObject.get("hospitalName").toString(); String age = jsonObject.get("age").toString(); String sexCode = jsonObject.get("sex").toString(); @@ -263,23 +263,23 @@ public class LcdcfHisService { private static void setTitle( String age, String sex, String name, String checkDept, String doctor, PdfPTable table) throws DocumentException { PdfPCell cell; - cell = new PdfPCell(new Phrase(getFont(5, "年龄:" + age))); + cell = new PdfPCell(new Phrase(getFont(5, "年龄:" + age))); cell.setColspan(6); cell.setBorder(0); table.addCell(cell); - cell = new PdfPCell(new Phrase(getFont(5, "性别:" + sex))); + cell = new PdfPCell(new Phrase(getFont(5, "性别:" + sex))); cell.setColspan(5); cell.setBorder(0); table.addCell(cell); - cell = new PdfPCell(new Phrase(getFont(5, "姓名:" + name))); + cell = new PdfPCell(new Phrase(getFont(5, "姓名:" + name))); cell.setColspan(6); cell.setBorder(0); table.addCell(cell); - cell = new PdfPCell(new Phrase(getFont(5, "申请科室:" + checkDept))); + cell = new PdfPCell(new Phrase(getFont(5, "申请科室:" + checkDept))); cell.setColspan(10); cell.setBorder(0); table.addCell(cell); - cell = new PdfPCell(new Phrase(getFont(5, "申请医生:" + doctor))); + cell = new PdfPCell(new Phrase(getFont(5, "申请医生:" + doctor))); cell.setColspan(8); cell.setBorder(0); table.addCell(cell); -- 1.8.3.1