|
@@ -82,36 +82,36 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
// List<String> files = new ArrayList<>();
|
|
|
// files.add(file2);
|
|
|
// BladeFile bladeFile = newIOSSClient.uploadFile1(file2,"123");
|
|
|
- String urls1 = "https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com/upload/20230427/ed4305eb971b062046c1ffd4e2da3c32.pdf";
|
|
|
- String urls2 = "https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com/upload/20230427/f1ddb3bd25c076824ef366a9e242ff23.pdf";
|
|
|
- List<String> urls = new ArrayList<>();
|
|
|
- String localPath = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
- urls.add(urls1);
|
|
|
- urls.add(urls2);
|
|
|
- List<String> pageUrls = FileUtils.doForPageNumberUseItextpdf(urls,localPath,newIOSSClient,1578599210897772545L);
|
|
|
- System.out.println();
|
|
|
+// String urls1 = "https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com/upload/20230427/ed4305eb971b062046c1ffd4e2da3c32.pdf";
|
|
|
+// String urls2 = "https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com/upload/20230427/f1ddb3bd25c076824ef366a9e242ff23.pdf";
|
|
|
+// List<String> urls = new ArrayList<>();
|
|
|
+// String localPath = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
+// urls.add(urls1);
|
|
|
+// urls.add(urls2);
|
|
|
+// List<String> pageUrls = FileUtils.doForPageNumberUseItextpdf(urls,localPath,newIOSSClient,1578599210897772545L);
|
|
|
+// System.out.println();
|
|
|
|
|
|
|
|
|
-// String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
-// boolean flag = FileUtils.LocalPath.equals(file_path);
|
|
|
-// String excelUrl = file_path + "\\备考表.xlsx";
|
|
|
-//
|
|
|
-// Map<String, Object> DataInfo = new HashMap<>();
|
|
|
-//
|
|
|
-// DataVO dataVO = FormulaUtil.convertCellToIndex("C2");
|
|
|
-// String key = "1__"+ dataVO.getY() + "_" + dataVO.getX();
|
|
|
-// DataInfo.put(key,"档号123456");
|
|
|
-//
|
|
|
-// DataVO dataVO1 = FormulaUtil.convertCellToIndex("A9");
|
|
|
-// String key1 = "2__"+ dataVO1.getY() + "_" + dataVO1.getX();
|
|
|
-// DataInfo.put(key1,"hahahahaa");
|
|
|
-// try {
|
|
|
-// String url = getBussPdfInfo(pkeyId.toString(),DataInfo,excelUrl,file_path,null,null);
|
|
|
-// } catch (Exception e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
-//
|
|
|
-// System.out.println();
|
|
|
+ String file_path = ParamCache.getValue(CommonConstant.SYS_LOCAL_URL);
|
|
|
+ boolean flag = FileUtils.LocalPath.equals(file_path);
|
|
|
+ String excelUrl = file_path + "\\备考表.xlsx";
|
|
|
+
|
|
|
+ Map<String, Object> DataInfo = new HashMap<>();
|
|
|
+
|
|
|
+ DataVO dataVO = FormulaUtil.convertCellToIndex("C2");
|
|
|
+ String key = "1__"+ dataVO.getY() + "_" + dataVO.getX();
|
|
|
+ DataInfo.put(key,"档号123456");
|
|
|
+
|
|
|
+ DataVO dataVO1 = FormulaUtil.convertCellToIndex("A9");
|
|
|
+ String key1 = "2__"+ dataVO1.getY() + "_" + dataVO1.getX();
|
|
|
+ DataInfo.put(key1,"hahahahaa");
|
|
|
+ try {
|
|
|
+ String url = getBussPdfInfo(pkeyId.toString(),DataInfo,excelUrl,file_path,null,null);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
+ System.out.println();
|
|
|
|
|
|
|
|
|
}
|
|
@@ -572,8 +572,9 @@ public class ArchiveAutoPdfServiceImpl implements IArchiveAutoPdfService {
|
|
|
FileOutputStream outputStream = new FileOutputStream(excelPath);
|
|
|
workbook.write(outputStream);
|
|
|
FileUtils.setExcelScaleToPdf(excelPath, localPdfPath);
|
|
|
+ //String absoluteFileName = "upload/" + 899999 + "/archive/" + fileName;
|
|
|
+ //BladeFile bladeFile = newIOSSClient.uploadFile(absoluteFileName + ".pdf", localPdfPath);
|
|
|
BladeFile bladeFile = newIOSSClient.uploadFile(fileName + ".pdf", localPdfPath,ossPath, projectId);
|
|
|
-
|
|
|
String pdfLink = "";
|
|
|
if (bladeFile!= null ){
|
|
|
pdfLink = bladeFile.getLink();
|