diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java index 2c38b14..8d44059 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/signature/service/impl/ExpertSignatureServiceImpl.java @@ -106,7 +106,7 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService { } //保存合并后的文档 - d1.saveToFile(path + "/merged.docx", FileFormat.Docx_2010); + d1.saveToFile(path + "merged.docx", FileFormat.Docx_2010); //转为pdf long l = System.currentTimeMillis(); @@ -114,11 +114,11 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService { return null; } - File f = new File(path + "/merged.pdf"); + File f = new File(path + "merged.pdf"); FileOutputStream fos = new FileOutputStream(f); try { - com.aspose.words.Document doc = new com.aspose.words.Document(path + "/merged.docx"); + com.aspose.words.Document doc = new com.aspose.words.Document(path + "merged.docx"); doc.save(fos, SaveFormat.PDF); } catch (Exception e) { e.printStackTrace(); @@ -187,7 +187,7 @@ public class ExpertSignatureServiceImpl implements ExpertSignatureService { XWPFTemplate template = XWPFTemplate.compile(file).render(all); FileInputStream fis = null; try { - String docPath = path + "/expertSignature.docx"; + String docPath = path + "expertSignature.docx"; template.writeToFile(docPath); fis = new FileInputStream(new File(docPath));