|
@@ -4106,6 +4106,11 @@ Group by PriceType ", dto.diId);
|
|
workbook.Write(stream, true);
|
|
workbook.Write(stream, true);
|
|
stream.Flush();
|
|
stream.Flush();
|
|
stream.Seek(0, SeekOrigin.Begin);
|
|
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);
|
|
stream.SaveToFile(AppSettingsHelper.Get("ExcelBasePath") + path);
|
|
}
|
|
}
|
|
|
|
|