From d2191bf362cd456f2b16d6ceac16626230388a5c Mon Sep 17 00:00:00 2001
From: cnf <3283105747@qq.com>
Date: 星期三, 12 十一月 2025 17:13:18 +0800
Subject: [PATCH] Merge branch 'master' of http://git.gs-mes.com:8080/r/~kyy/LW_MesService

---
 WebApi/Gs.Toolbox/ExcelHelper.cs |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/WebApi/Gs.Toolbox/ExcelHelper.cs b/WebApi/Gs.Toolbox/ExcelHelper.cs
index 0108f7d..8691007 100644
--- a/WebApi/Gs.Toolbox/ExcelHelper.cs
+++ b/WebApi/Gs.Toolbox/ExcelHelper.cs
@@ -161,7 +161,6 @@
             }
         }
     }
-
     /// <summary>
     /// </summary>
     /// <param name="dtSource"></param>
@@ -279,9 +278,25 @@
                 _ftidx++;
             }
         }
+
+        //淇濆瓨
+        using (var ms = new MemoryStream())
+        {
+            using (var fs = new FileStream(strFileName, FileMode.Create,
+                       FileAccess.Write))
+            {
+                workbook.Write(ms);
+                ms.Flush();
+                ms.Position = 0;
+                var data = ms.ToArray();
+                fs.Write(data, 0, data.Length);
+                fs.Flush();
+            }
+        }
     }
 
 
+
     /// <summary>
     /// 
     /// </summary>

--
Gitblit v1.9.3