ソースを参照

Merge branch 'develop' of http://132.232.92.186:3000/XinXiBu/OA2023 into develop

LEIYI 8 ヶ月 前
コミット
e539701db2
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5 0
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 5 - 0
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -4106,6 +4106,11 @@ Group by PriceType ", dto.diId);
                 workbook.Write(stream, true);
                 stream.Flush();
                 stream.Seek(0, SeekOrigin.Begin);
+                var pathinfo = AppSettingsHelper.Get("ExcelBasePath") + path;
+                if (System.IO.File.Exists(pathinfo))
+                {
+                    System.IO.File.Delete(pathinfo);
+                }
                 stream.SaveToFile(AppSettingsHelper.Get("ExcelBasePath") + path);
             }