导表工具修改

This commit is contained in:
2025-10-09 17:55:51 +08:00
parent c1a3df2192
commit 547d234ad3
11 changed files with 423 additions and 574 deletions

View File

@@ -1,22 +1,22 @@
using OfficeOpenXml;
namespace NBConfigBuilder;
public sealed class ExcelWorksheets(ExcelExporter excelExporter)
{
public bool TryGetValue(string worksheetName, out ExcelWorksheet excelWorksheet)
{
if (excelExporter.Worksheets.TryGetValue(worksheetName, out excelWorksheet))
{
return true;
}
var computeHash64 = HashCodeHelper.ComputeHash64(worksheetName);
if (!excelExporter.VersionInfo.WorksheetNames.Contains(computeHash64))
{
Log.Info($"{worksheetName} is not exist!");
}
return false;
}
}
// using OfficeOpenXml;
//
// namespace NBConfigBuilder;
//
// public sealed class ExcelWorksheets(ExcelExporter excelExporter)
// {
// public bool TryGetValue(string worksheetName, out ExcelWorksheet excelWorksheet)
// {
// if (excelExporter.Worksheets.TryGetValue(worksheetName, out excelWorksheet))
// {
// return true;
// }
//
// var computeHash64 = HashCodeHelper.ComputeHash64(worksheetName);
// if (!excelExporter.VersionInfo.WorksheetNames.Contains(computeHash64))
// {
// Log.Info($"{worksheetName} is not exist!");
// }
//
// return false;
// }
// }