Преглед на файлове

运营中心V1.1-导出优化

longmeizhen@avic-s.com преди 1 година
родител
ревизия
cda9738b78

+ 9 - 9
superdesk-uniorder-service/src/main/java/cn/superdesk/uniorder/service/accounting/unified/operator/Impl/AccountingUnifiedOperatorServiceImpl.java

@@ -228,20 +228,20 @@ public class AccountingUnifiedOperatorServiceImpl implements AccountingUnifiedOp
 
     @Override
     public SysNotify exportAccountSupplierList(AccountingUnifiedOperatorQueryParam param) {
-//        String excelExportPathRoot = excelExportConstant.getPathRoot();
-//        String excelExportOrderPathTemplate = excelExportConstant.getPathTemplate();
-//        String excelExportOrderPathStorage = excelExportConstant.getPathStorage();
+        String excelExportPathRoot = excelExportConstant.getPathRoot();
+        String excelExportOrderPathTemplate = excelExportConstant.getPathTemplate();
+        String excelExportOrderPathStorage = excelExportConstant.getPathStorage();
         String relativePath = File.separator + "excel" + File.separator + "accounting" + File.separator + "unified" + File.separator+ "operator" + File.separator;
-//        String templateRelativePath = excelExportPathRoot + excelExportOrderPathTemplate + relativePath;
-//        String templateFullPath = templateRelativePath + EXPORT_ACCOUNTING_OP_SUPPLIER_TEMPLATE;
-//        String targetFullPath = excelExportPathRoot + excelExportOrderPathStorage;
+        String templateRelativePath = excelExportPathRoot + excelExportOrderPathTemplate + relativePath;
+        String templateFullPath = templateRelativePath + EXPORT_ACCOUNTING_OP_SUPPLIER_TEMPLATE;
+        String targetFullPath = excelExportPathRoot + excelExportOrderPathStorage;
 
         String strTime = DateUtil.format(new Date(), "yyyyMMddHHmmss");
         String targetFileName = "账单管理_导出账单(含供应商成本)_" + strTime + GenRandomHelper.genRandomNum(4) +".xlsx";
-//        String targetWriteFileFullPath = targetFullPath + relativePath + targetFileName;
+        String targetWriteFileFullPath = targetFullPath + relativePath + targetFileName;
 
-        String targetWriteFileFullPath = "D:\\template\\excel\\"+targetFileName;
-        String templateFullPath = "D:\\template\\tmp\\" +EXPORT_ACCOUNTING_OP_SUPPLIER_TEMPLATE;
+//        String targetWriteFileFullPath = "D:\\template\\excel\\"+targetFileName;
+//        String templateFullPath = "D:\\template\\tmp\\" +EXPORT_ACCOUNTING_OP_SUPPLIER_TEMPLATE;
 
         FileUtil.touch(targetWriteFileFullPath);