ningshuxia
2022-11-30 79c26fdc8c4c4fa459318460d85faef8e50321ed
Application/IStation.Application.DataFile/eta_day_report/Eta_Day_Report_Controller.cs
@@ -15,6 +15,7 @@
namespace IStation.Application
{
    #region 报表生成
    /// <summary>
    /// Report
    /// </summary>
@@ -57,7 +58,7 @@
            }
            LogHelper.Info("生成根目录");
            var pdf = new Eta_Day_ReportPdf();
            var ReportPath = Path.Combine(ConfigHelper.DataPath, Settings.DataFile.PdfFolder);
            var ReportPath = Path.Combine(ConfigHelper.DataPath, @"Report");
            if (!Directory.Exists(ReportPath))
                Directory.CreateDirectory(ReportPath);
            LogHelper.Info("拼接日期文件夹");
@@ -75,8 +76,8 @@
            var etaPdfFileName = $"Station_Eta_{station.ID}_{input.DateTime.ToString("MM-dd")}.pdf";
            var etaPdfFilePath = Path.Combine(pdfPath, etaPdfFileName);
            var turePath = Path.Combine("/" + Settings.DataFile.PdfFolder, EtaPathName, dateTimePathName, etaPdfFileName);
            turePath = turePath.Replace("\\", "/");
            var turePath = Path.Combine(@"Report", EtaPathName, dateTimePathName, etaPdfFileName);
            turePath = turePath.Replace(@"\\", @"/");
            LogHelper.Info("拼接最终路径");
            if (!File.Exists(etaPdfFilePath))
@@ -102,4 +103,5 @@
    }
#endregion
}