zhaowenxuan
2024-12-09 19590a728a4aa4286bd9bad7aa620357b8c65bd4
ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisPDFUtil.java
@@ -147,7 +147,7 @@
                pageSize = pdfWriter.getPageNumber();
            }
        } catch (DocumentException e) {
            e.printStackTrace();
            log.error(String.valueOf(e));
            return AjaxResult.error();
        }
        document1.setMargins(70, 70, 40, 40);
@@ -159,7 +159,7 @@
            notHuaYanTable(document1, printReport,dictHosp,color);
        } catch (DocumentException e) {
            log.error("非化验项目填充表格异常");
            e.printStackTrace();
            log.error(String.valueOf(e));
            return AjaxResult.error();
        }
        // 组装检验数据
@@ -193,7 +193,7 @@
            copy.close();
        } catch (IOException e) {
            log.error("拷贝pdf异常");
            e.printStackTrace();
            log.error(String.valueOf(e));
            return AjaxResult.error();
        }
        String outputFileName1 = customer.getCusId() + tjOrder.getTjNumber() + customer.getCusName() + "_报告.pdf";
@@ -219,7 +219,7 @@
            pdfReader.close();
            finalOutPut = outputStream;
        } catch (IOException e) {
            e.printStackTrace();
            log.error(String.valueOf(e));
            return AjaxResult.error();
        }
        savePDFFile(outputFileName1, tjOrder, customer, finalOutPut);