Browse Source

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

LEIYI 8 months ago
parent
commit
e539701db2
1 changed files with 5 additions and 0 deletions
  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);
             }